mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-70897 various: uasort callback can not return bool
Co-authored-by: Ruslan Kabalin <ruslan.kabalin@gmail.com>
This commit is contained in:
parent
9600becce3
commit
79949dc508
5 changed files with 12 additions and 11 deletions
|
@ -480,7 +480,7 @@ class manager {
|
|||
|
||||
// Sort categories by order.
|
||||
uasort($categories, function($category1, $category2) {
|
||||
return $category1->get_order() > $category2->get_order();
|
||||
return $category1->get_order() <=> $category2->get_order();
|
||||
});
|
||||
|
||||
static::$searchareacategories = $categories;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue