diff --git a/src/sammo/WebUtil.php b/src/sammo/WebUtil.php index d403061e..9c2b9fab 100644 --- a/src/sammo/WebUtil.php +++ b/src/sammo/WebUtil.php @@ -141,7 +141,7 @@ class WebUtil $result = []; foreach($json as $menuItem){ - if (count($path) == 2) { + if (count($menuItem) == 2) { [$url, $title] = $menuItem; $targetAttr = ''; }