Commit 707c01ae by François Gannaz

Fixes a Yii Exception on PHP5.4 with ERROR_ALL

BootMenu and BootDropdown both handles items supposing they were arrays. But an item can be the string '---', so array indices were used as string positions... until PHP refused this dangerous syntax. So on PHP 5.4, Yii throws an Exception in the main page of the demo.
parent 1a464dbc
......@@ -95,6 +95,10 @@ class BootDropdown extends BootBaseMenu
continue;
}
if (!is_array($item)) {
continue;
}
if (!isset($item['label']))
$item['label'] = '';
......
......@@ -177,6 +177,10 @@ class BootMenu extends BootBaseMenu
continue;
}
if (!is_array($item)) {
continue;
}
if (!isset($item['label']))
$item['label'] = '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment