aboutsummaryrefslogtreecommitdiff
path: root/model/Conferences.php
diff options
context:
space:
mode:
authorMaZderMind2016-12-11 20:27:35 +0100
committerMaZderMind2016-12-11 20:38:30 +0100
commit8beec6fda376b842a9ddb7a2425829690f0a8b48 (patch)
tree49ef2cb90694aa16aa34fd0b0f261f28ccfd41df /model/Conferences.php
parent3c3d0ac7301e818b14d01b9bbc949ca13d2cf798 (diff)
use DateTime objects for ends/startsAt
Diffstat (limited to '')
-rw-r--r--model/Conferences.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/model/Conferences.php b/model/Conferences.php
index 2dc9f35..8de4029 100644
--- a/model/Conferences.php
+++ b/model/Conferences.php
@@ -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;