From 286f04087391cb78b09fd7ac3cbd32f5426ee780 Mon Sep 17 00:00:00 2001 From: Thiago Talma Date: Mon, 3 Feb 2014 10:47:20 -0200 Subject: [PATCH] Change condition --- Dropdown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dropdown.php b/Dropdown.php index 682b120..f276757 100644 --- a/Dropdown.php +++ b/Dropdown.php @@ -84,7 +84,7 @@ class Dropdown extends Widget $linkOptions = ArrayHelper::getValue($item, 'linkOptions', []); $linkOptions['tabindex'] = '-1'; $content = Html::a($label, ArrayHelper::getValue($item, 'url', '#'), $linkOptions); - if (isset($item['items']) && is_array($item['items'])) { + if (!empty($item['items'])) { $content .= $this->renderItems($item['items']); Html::addCssClass($options, 'dropdown-submenu'); }