Merge branch 'MDL-52160-30' of git://github.com/FMCorz/moodle into MOODLE_30_STABLE

This commit is contained in:
David Monllao
2015-11-23 14:09:36 +08:00
+2 -2
View File
@@ -4032,8 +4032,8 @@ class settings_navigation extends navigation_node {
$function($this, $modulenode);
// Remove the module node if there are no children
if (empty($modulenode->children)) {
// Remove the module node if there are no children.
if ($modulenode->children->count() <= 0) {
$modulenode->remove();
}