aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaZderMind2016-08-06 12:47:03 +0200
committerMaZderMind2016-08-06 12:47:26 +0200
commit88d4d383d900441e5c9f600b4820a0fa7d62d9a1 (patch)
tree89f9dacba20c93271caef9b9f06be421d61005b8
parent6250f381d68256f7a23c369d169ad2e103205fed (diff)
persons are never in an array (it's a simplexml object)
-rw-r--r--model/Schedule.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/model/Schedule.php b/model/Schedule.php
index 0b2958e..a35ad18 100644
--- a/model/Schedule.php
+++ b/model/Schedule.php
@@ -170,7 +170,7 @@ class Schedule extends ModelBase
}
$personnames = array();
- if(isset($event->persons) && is_array($event->persons)) foreach($event->persons->person as $person)
+ if(isset($event->persons)) foreach($event->persons->person as $person)
$personnames[] = (string)$person;
$program[$name][] = array(