add compatibility with php8.1 #1452
This commit is contained in:
parent
bda30ee9b0
commit
3a8fa7ab94
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue