MDL-79232 navigation: fix undefined var warning
This commit is contained in:
@@ -3644,6 +3644,7 @@ class navbar extends navigation_node {
|
||||
} else if ($this->hasitems !== false) {
|
||||
return true;
|
||||
}
|
||||
$outcome = false;
|
||||
if (count($this->children) > 0 || count($this->prependchildren) > 0) {
|
||||
// There have been manually added items - there are definitely items.
|
||||
$outcome = true;
|
||||
|
||||
Reference in New Issue
Block a user