Skip to content

Commit ce11241

Browse files
committed
Fixed issue 384
1 parent 450ce85 commit ce11241

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Block/Category/PostList.php

+1
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ protected function _addBreadcrumbs($title = null, $key = null)
153153
}
154154
$parentCategories[$parentCategory->getId()] = $category = $parentCategory;
155155
}
156+
$parentCategories = array_values($parentCategories);
156157

157158
for ($i = count($parentCategories) - 1; $i >= 0; $i--) {
158159
$category = $parentCategories[$i];

Block/Post/View.php

+1
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ protected function _addBreadcrumbs($title = null, $key = null)
105105
$parentCategories[$parentCategory->getId()] = $parentCategory;
106106
$parentCategory = $parentCategory->getParentCategory();
107107
}
108+
$parentCategories = array_values($parentCategories);
108109

109110
for ($i = count($parentCategories) - 1; $i >= 0; $i--) {
110111
$parentCategory = $parentCategories[$i];

0 commit comments

Comments
 (0)