Skip to content

Commit

Permalink
Fix issue #455 (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
zaxbux authored Apr 5, 2021
1 parent 1418b03 commit 01ffd57
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions models/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ public static function resolveMenuItem($item, $url, $theme)
$result['mtime'] = $category->updated_at;

if ($item->nesting) {
$categories = $category->getNested();
$iterator = function($categories) use (&$iterator, &$item, &$theme, $url) {
$branch = [];

Expand All @@ -248,7 +247,7 @@ public static function resolveMenuItem($item, $url, $theme)
return $branch;
};

$result['items'] = $iterator($categories);
$result['items'] = $iterator($category->children);
}
}
elseif ($item->type == 'all-blog-categories') {
Expand Down

0 comments on commit 01ffd57

Please sign in to comment.