summaryrefslogtreecommitdiff
path: root/app/frontend/dto/CalendarGroupDTO.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-01-10 22:36:20 +0100
committeremkael <emkael@tlen.pl>2017-01-10 22:36:20 +0100
commit90e9bb090d8d4cc9099a15b925ccd2f19b5d31c8 (patch)
tree8c25c6d8d9a146bffd5d7e091fab4e9bd580b961 /app/frontend/dto/CalendarGroupDTO.php
parent0fbfa29fc063a0ddb06eb6882c6620bd3cc116ed (diff)
* fixed PHP_INT_MAX constant name
Diffstat (limited to 'app/frontend/dto/CalendarGroupDTO.php')
-rw-r--r--app/frontend/dto/CalendarGroupDTO.php2
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;
}