From 3a8fa7ab94c895eb764d42b8fb28748fffb12662 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Mon, 5 Sep 2022 20:08:04 +0200 Subject: [PATCH] add compatibility with php8.1 #1452 --- bl-kernel/boot/rules/60.plugins.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bl-kernel/boot/rules/60.plugins.php b/bl-kernel/boot/rules/60.plugins.php index 7918123b..c03d7ee9 100644 --- a/bl-kernel/boot/rules/60.plugins.php +++ b/bl-kernel/boot/rules/60.plugins.php @@ -121,7 +121,7 @@ function buildPlugins() // Sort the plugins by the position for the site sidebar uasort($plugins['siteSidebar'], function ($a, $b) { - return $a->position()>$b->position(); + return $a->position() <=> $b->position(); } ); }