Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-29990 fix syntax error

  • Loading branch information...
commit 7704977132b79bcae9f66e0df0b9bbb1f287165e 1 parent e1fe0c5
@skodak skodak authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/navigationlib.php
View
2  lib/navigationlib.php
@@ -1395,7 +1395,7 @@ protected function load_all_categories($categoryid = null, $showbasecategories =
*/
protected function add_category(stdClass $category, navigation_node $parent) {
if (array_key_exists($category->id, $this->addedcategories)) {
- continue;
+ return;
}
$url = new moodle_url('/course/category.php', array('id' => $category->id));
$categorynode = $parent->add($category->name, $url, self::TYPE_CATEGORY, $category->name, $category->id);
Please sign in to comment.
Something went wrong with that request. Please try again.