Merge branch 'MDL-79232-master' of https://github.com/marinaglancy/moodle

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