aboutsummaryrefslogtreecommitdiff
path: root/model
diff options
context:
space:
mode:
Diffstat (limited to 'model')
-rw-r--r--model/Schedule.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/model/Schedule.php b/model/Schedule.php
index f384467..371a8ce 100644
--- a/model/Schedule.php
+++ b/model/Schedule.php
@@ -146,7 +146,7 @@ class Schedule extends ModelBase
}
$personnames = array();
- foreach($event->persons->person as $person)
+ if(isset($event->persons) && is_array($event->persons)) foreach($event->persons->person as $person)
$personnames[] = (string)$person;
$program[$name][] = array(