diff --git a/mdcountdata.php b/mdcountdata.php index a68c896..4da96db 100644 --- a/mdcountdata.php +++ b/mdcountdata.php @@ -74,11 +74,11 @@ class logdata { define('LOG_FOLDER', './logs/'); function compasc($a, $b) { - return ($a === $b ? 0 : $a < $b ? -1 : 1); + return ($a === $b ? 0 : ($a < $b ? -1 : 1)); } function compdesc($a, $b) { - return ($a === $b ? 0 : $a > $b ? -1 : 1); + return ($a === $b ? 0 : ($a > $b ? -1 : 1)); } function limitqty($data, $limit) {