Skip to content

Commit 7a5b153

Browse files
authored
Fix the issue 667 Infinity loop for Widget Magefan\Blog\Block\Widget\Recent
1 parent 8b1951f commit 7a5b153

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Block/Widget/Recent.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,11 @@ public function _toHtml()
6767
$this->getData('custom_template') ?: 'Magefan_Blog::widget/recent.phtml'
6868
);
6969

70-
$html = parent::_toHtml();
71-
7270
foreach ($this->getPostCollection() as $item) {
7371
self::$processedIds[$item->getId()] = $item->getId();
7472
}
75-
return $html;
73+
74+
return parent::_toHtml();
7675
}
7776

7877
/**

0 commit comments

Comments
 (0)