diff --git a/extensions/bootstrap/Nav.php b/extensions/bootstrap/Nav.php index 42e6346..ef1dbb5 100644 --- a/extensions/bootstrap/Nav.php +++ b/extensions/bootstrap/Nav.php @@ -202,7 +202,7 @@ class Nav extends Widget unset($item['url']['#']); if (count($item['url']) > 1) { foreach (array_splice($item['url'], 1) as $name => $value) { - if (!isset($this->params[$name]) || $this->params[$name] != $value) { + if ($value !== null && (!isset($this->params[$name]) || $this->params[$name] != $value)) { return false; } } diff --git a/framework/widgets/Menu.php b/framework/widgets/Menu.php index d5ff8ef..cdb678a 100644 --- a/framework/widgets/Menu.php +++ b/framework/widgets/Menu.php @@ -295,7 +295,7 @@ class Menu extends Widget unset($item['url']['#']); if (count($item['url']) > 1) { foreach (array_splice($item['url'], 1) as $name => $value) { - if (!isset($this->params[$name]) || $this->params[$name] != $value) { + if ($value !== null && (!isset($this->params[$name]) || $this->params[$name] != $value)) { return false; } }