Skip to content

Commit c96336e

Browse files
authored
Merge pull request #171 from ppetpadriew/fix_unitialized_offset_0
fix: unitialized offset 0
2 parents 613821a + b218aad commit c96336e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

widgets/Menu.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ protected function isItemActive($item)
190190
{
191191
if (isset($item['url']) && is_array($item['url']) && isset($item['url'][0])) {
192192
$route = $item['url'][0];
193-
if ($route[0] !== '/' && Yii::$app->controller) {
193+
if (isset($route[0]) && $route[0] !== '/' && Yii::$app->controller) {
194194
$route = ltrim(Yii::$app->controller->module->getUniqueId() . '/' . $route, '/');
195195
}
196196
$route = ltrim($route, '/');

0 commit comments

Comments
 (0)