diff options
author | emkael <emkael@tlen.pl> | 2017-01-10 22:36:20 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-01-10 22:36:20 +0100 |
commit | 90e9bb090d8d4cc9099a15b925ccd2f19b5d31c8 (patch) | |
tree | 8c25c6d8d9a146bffd5d7e091fab4e9bd580b961 /app | |
parent | 0fbfa29fc063a0ddb06eb6882c6620bd3cc116ed (diff) |
* fixed PHP_INT_MAX constant name
Diffstat (limited to 'app')
-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; } |