diff options
Diffstat (limited to 'model/Conferences.php')
-rw-r--r-- | model/Conferences.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/model/Conferences.php b/model/Conferences.php index 2dc9f35..f930e32 100644 --- a/model/Conferences.php +++ b/model/Conferences.php @@ -33,7 +33,7 @@ class Conferences public static function getActiveConferences() { return array_values(array_filter( - Conferences::getConferences(), + Conferences::getConferencesSorted(), function($conference) { return !$conference->isClosed(); } @@ -48,7 +48,7 @@ class Conferences $sorted = Conferences::getConferences(); usort($sorted, function($a, $b) { - return $b->startsAt() - $a->endsAt(); + return $b->startsAt() > $a->endsAt() ? 1 : -1; }); return $sorted; |