Merge branch 'MDL-79232-402' of https://github.com/marinaglancy/moodle into MOODLE_402_STABLE

This commit is contained in:
Paul Holden
2023-09-04 11:38:11 +01:00
+1
View File
@@ -3653,6 +3653,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;