Skip to content

Commit

Permalink
Update buildarray.php
Browse files Browse the repository at this point in the history
  • Loading branch information
skerbis authored Apr 4, 2024
1 parent 56ebddd commit 6372438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/buildarray.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ private function processCategory($cat, $currentCatpath, $currentCat_id): array
'level' => $this->level,
'catName' => $cat->getName(),
'url' => $cat->getUrl(),
'hasChildren' => 'active' => in_array($catId, $currentCatpath) || $currentCat_id == $catId,
'hasChildren' => !empty($children['child']),
'children' => $children['child'],
'path' => $cat->getPathAsArray(),
'active' => in_array($catId, $currentCatpath) || $currentCat_id == $catId,
Expand Down

0 comments on commit 6372438

Please sign in to comment.