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

This commit is contained in:
David Monllao
2015-11-23 14:09:47 +08:00
+2 -2
View File
@@ -4025,8 +4025,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();
}