Skip to content

Commit

Permalink
UPDATE
Browse files Browse the repository at this point in the history
  • Loading branch information
worstinme committed Jan 17, 2018
1 parent 9df362e commit 8007fd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Nav.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function renderItem($item)
$label = $this->encodeLabels ? Html::encode($item['label']) : $item['label'];
$options = ArrayHelper::getValue($item, 'options', []);
$items = ArrayHelper::getValue($item, 'items');
if (!count($items)) {
if (!is_array($items) || !count($items)) {
$items = null;
}
$url = Url::to(ArrayHelper::getValue($item, 'url', false));
Expand Down

0 comments on commit 8007fd8

Please sign in to comment.