mirror of
https://github.com/voc/streaming-website
synced 2024-11-15 00:47:14 +00:00
persons are never in an array (it's a simplexml object)
This commit is contained in:
parent
6250f381d6
commit
88d4d383d9
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue