add comments

This commit is contained in:
Andreas Hubel 2021-12-30 19:37:57 +01:00
parent beb9ddae0a
commit 2a4781a19c

View file

@ -56,6 +56,7 @@
<?
/*
// remove rooms without talks
$rooms = array_filter($rooms, function($r) {
global $upcomingTalksPerRoom;
$upcoming = @$upcomingTalksPerRoom[ $r->getSlug() ];
@ -70,6 +71,7 @@
$u_b = $upcomingTalksPerRoom[ $r_b->getSlug() ];
$b = @$u_b['current']['special'] ? $u_b['next'] : $u_b['current'];
// sort rooms without remaining schedule to end
if ( $u_a['next'] === null || $u_b['next'] === null) {
return -($u_a['next'] <=> $u_b['next']);
}