diff --git a/lib/navigationlib.php b/lib/navigationlib.php index 33835dfc0e829..f807b7d269b55 100644 --- a/lib/navigationlib.php +++ b/lib/navigationlib.php @@ -1089,7 +1089,7 @@ public function initialise() { // Fetch any other categories we need. $allcategories = $DB->get_records_list('course_categories', 'id', $categoryids, 'depth ASC, sortorder ASC'); if (is_array($allcategories) && count($allcategories) > 0) { - $categories = array_merge($categories); + $categories = array_merge($categories, $allcategories); } }