Skip to content

Commit

Permalink
MDL-27405 navigation: Fixed up buggy array_merge call
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Mar 13, 2012
1 parent aad30b6 commit bc40124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/navigationlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit bc40124

Please sign in to comment.