From b6366a002243215913396a431abae11c189190a6 Mon Sep 17 00:00:00 2001 From: nkovacs Date: Tue, 24 Feb 2015 11:17:59 +0100 Subject: [PATCH] Fixes #7412: Removed unnecessary unsets in Dropdown and Nav --- Dropdown.php | 1 - Nav.php | 1 - 2 files changed, 2 deletions(-) diff --git a/Dropdown.php b/Dropdown.php index adefbdc..14fc158 100644 --- a/Dropdown.php +++ b/Dropdown.php @@ -90,7 +90,6 @@ class Dropdown extends Widget $lines = []; foreach ($items as $i => $item) { if (isset($item['visible']) && !$item['visible']) { - unset($items[$i]); continue; } if (is_string($item)) { diff --git a/Nav.php b/Nav.php index 65a456f..bfeb606 100644 --- a/Nav.php +++ b/Nav.php @@ -127,7 +127,6 @@ class Nav extends Widget $items = []; foreach ($this->items as $i => $item) { if (isset($item['visible']) && !$item['visible']) { - unset($items[$i]); continue; } $items[] = $this->renderItem($item);