From 2fe212abcdb77923703c29a5427c20e468ac98c1 Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Fri, 1 Sep 2023 14:20:29 +0100 Subject: [PATCH] MDL-79232 navigation: fix undefined var warning --- lib/navigationlib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/navigationlib.php b/lib/navigationlib.php index 36a399a2e34..b28f4baec65 100644 --- a/lib/navigationlib.php +++ b/lib/navigationlib.php @@ -3652,6 +3652,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;