MDL-27405 navigation: Fixed up buggy array_merge call

This commit is contained in:
Sam Hemelryk 2012-03-14 10:16:34 +13:00
parent aad30b6a39
commit bc40124bfe

View File

@ -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);
} }
} }