Browse Source

Fixes #7412: Removed unnecessary unsets in Dropdown and Nav

tags/2.0.3
nkovacs 10 years ago committed by Alexander Makarov
parent
commit
b6366a0022
  1. 1
      Dropdown.php
  2. 1
      Nav.php

1
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)) {

1
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);

Loading…
Cancel
Save