From 7cb39f662f826e9ee8643d5f9a7c7df05e39cfde Mon Sep 17 00:00:00 2001 From: Dan Date: Fri, 15 Jan 2021 09:04:54 +0700 Subject: [PATCH] PHP 8 support Simple fix to support PHP 8. --- system/includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index a58db44..afb1c67 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -158,13 +158,13 @@ function get_category_folder() // usort function. Sort by filename. function sortfile($a, $b) { - return $a['basename'] == $b['basename'] ? 0 : ($a['basename'] < $b['basename']) ? 1 : -1; + return $a['basename'] == $b['basename'] ? 0 : (($a['basename'] < $b['basename']) ? 1 : -1); } // usort function. Sort by date. function sortdate($a, $b) { - return $a->date == $b->date ? 0 : ($a->date < $b->date) ? 1 : -1; + return $a->date == $b->date ? 0 : (($a->date < $b->date) ? 1 : -1); } // Rebuilt cache index