aboutsummaryrefslogtreecommitdiff
path: root/model/Schedule.php
diff options
context:
space:
mode:
authorMaZderMind2016-08-02 21:58:54 +0200
committerMaZderMind2016-08-02 21:58:54 +0200
commit6c526bdf4a28ed6800a0bc827d9d55e215e19be8 (patch)
tree1a46cd86d8d1933b5a93fc37409106840c99db80 /model/Schedule.php
parent8602ff0dd773fabb6480400f8f3838cbc0431631 (diff)
don't fail when schedule is missing person information
Diffstat (limited to '')
-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(