Permalink
Browse files

MDL-38631 Fixed faulty add_category call, introduced in 758103

  • Loading branch information...
alendit authored and marinaglancy committed Mar 25, 2013
1 parent 0ea1fbb commit 257b59e737fb7aff09e63b756fe52a31b7892fc0
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/navigationlib.php
View
@@ -2652,7 +2652,7 @@ protected function load_courses_enrolled() {
list($sql, $params) = $DB->get_in_or_equal($categoryids);
$categories = $DB->get_recordset_select('course_categories', 'id '.$sql.' AND parent = 0', $params, 'sortorder, id');
foreach ($categories as $category) {
- $this->add_category($category, $this->rootnodes['mycourses']);
+ $this->add_category($category, $this->rootnodes['mycourses'], self::TYPE_MY_CATEGORY);
}
$categories->close();
} else {

0 comments on commit 257b59e

Please sign in to comment.