From 4412f339cce320fdbf92070729ac64f3319e292e Mon Sep 17 00:00:00 2001 From: basteyy Date: Sat, 6 Jul 2024 23:03:12 +0200 Subject: [PATCH] Update pages.class.php Deprecated: uasort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in /var/www/html/bludit/bl-kernel/pages.class.php on line 424 --- bl-kernel/pages.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bl-kernel/pages.class.php b/bl-kernel/pages.class.php index f14bc393..0cf3692c 100644 --- a/bl-kernel/pages.class.php +++ b/bl-kernel/pages.class.php @@ -632,7 +632,7 @@ class Pages extends dbJSON private function sortByPositionLowToHigh($a, $b) { - return $a['position'] > $b['position']; + return $a['position'] <=> $b['position']; } private function sortByPositionHighToLow($a, $b) {