diff options
author | MaZderMind | 2016-08-06 12:47:03 +0200 |
---|---|---|
committer | MaZderMind | 2016-08-06 12:47:26 +0200 |
commit | 88d4d383d900441e5c9f600b4820a0fa7d62d9a1 (patch) | |
tree | 89f9dacba20c93271caef9b9f06be421d61005b8 /model/Schedule.php | |
parent | 6250f381d68256f7a23c369d169ad2e103205fed (diff) |
persons are never in an array (it's a simplexml object)
Diffstat (limited to '')
-rw-r--r-- | model/Schedule.php | 2 |
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( |