fix error 500 for invalid/empty schedule

This commit is contained in:
Andreas Hubel 2021-12-29 23:11:53 +01:00
parent cdd70e0484
commit 237457f963

View file

@ -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'])
);
});