Browse Source

Merge pull request #773 from yiidevelop/patch-3

Fix function argument
tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
a93f1ccea6
  1. 2
      framework/yii/widgets/Menu.php

2
framework/yii/widgets/Menu.php

@ -250,7 +250,7 @@ class Menu extends Widget
} }
$hasActiveChild = false; $hasActiveChild = false;
if (isset($item['items'])) { if (isset($item['items'])) {
$items[$i]['items'] = $this->normalizeItems($item['items'], $route, $hasActiveChild); $items[$i]['items'] = $this->normalizeItems($item['items'], $hasActiveChild);
if (empty($items[$i]['items']) && $this->hideEmptyItems) { if (empty($items[$i]['items']) && $this->hideEmptyItems) {
unset($items[$i]['items']); unset($items[$i]['items']);
if (!isset($item['url'])) { if (!isset($item['url'])) {

Loading…
Cancel
Save