diff options
Diffstat (limited to 'app/frontend/dto')
-rw-r--r-- | app/frontend/dto/CalendarGroupDTO.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/frontend/dto/CalendarGroupDTO.php b/app/frontend/dto/CalendarGroupDTO.php index cba1623..3f83d4b 100644 --- a/app/frontend/dto/CalendarGroupDTO.php +++ b/app/frontend/dto/CalendarGroupDTO.php @@ -36,7 +36,7 @@ class CalendarGroupDTO extends BaseDTO { public static function __compare(CalendarGroupDTO $cat1, CalendarGroupDTO $cat2) { - $cmp = ($cat1->Priority ?: PHP_MAX_INT) - ($cat2->Priority ?: PHP_MAX_INT); + $cmp = ($cat1->Priority ?: PHP_INT_MAX) - ($cat2->Priority ?: PHP_INT_MAX); if ($cmp !== 0) { return $cmp; } |