mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 06:34:17 +00:00
fix error 500 for invalid/empty schedule
This commit is contained in:
parent
cdd70e0484
commit
237457f963
1 changed files with 2 additions and 2 deletions
|
@ -19,9 +19,9 @@
|
|||
$u_a = $upcomingTalksPerRoom[ $r_a->getSlug() ];
|
||||
$u_b = $upcomingTalksPerRoom[ $r_b->getSlug() ];
|
||||
return (
|
||||
(@$u_a['current']['special'] ? $u_a['next']['start'] : $u_a['current']['start'])
|
||||
(@$u_a['current']['special'] ? @$u_a['next']['start'] : @$u_a['current']['start'])
|
||||
<=>
|
||||
(@$u_b['current']['special'] ? $u_b['next']['start'] : $u_b['current']['start'])
|
||||
(@$u_b['current']['special'] ? @$u_b['next']['start'] : @$u_b['current']['start'])
|
||||
);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue