From 90e9bb090d8d4cc9099a15b925ccd2f19b5d31c8 Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 10 Jan 2017 22:36:20 +0100 Subject: * fixed PHP_INT_MAX constant name --- app/frontend/dto/CalendarGroupDTO.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/frontend/dto') 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; } -- cgit v1.2.3