persons are never in an array (it's a simplexml object)

This commit is contained in:
MaZderMind 2016-08-06 12:47:03 +02:00
parent 6250f381d6
commit 88d4d383d9

View file

@ -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(