mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-27405 navigation: Fixed up buggy array_merge call
This commit is contained in:
parent
aad30b6a39
commit
bc40124bfe
@ -1089,7 +1089,7 @@ class global_navigation extends navigation_node {
|
|||||||
// Fetch any other categories we need.
|
// Fetch any other categories we need.
|
||||||
$allcategories = $DB->get_records_list('course_categories', 'id', $categoryids, 'depth ASC, sortorder ASC');
|
$allcategories = $DB->get_records_list('course_categories', 'id', $categoryids, 'depth ASC, sortorder ASC');
|
||||||
if (is_array($allcategories) && count($allcategories) > 0) {
|
if (is_array($allcategories) && count($allcategories) > 0) {
|
||||||
$categories = array_merge($categories);
|
$categories = array_merge($categories, $allcategories);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user