mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 06:34:17 +00:00
add comments
This commit is contained in:
parent
beb9ddae0a
commit
2a4781a19c
1 changed files with 2 additions and 0 deletions
|
@ -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']);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue