aboutsummaryrefslogtreecommitdiff
path: root/app/views/index/reader.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/index/reader.phtml')
-rw-r--r--app/views/index/reader.phtml10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/views/index/reader.phtml b/app/views/index/reader.phtml
index ae576c2e5..adcb78908 100644
--- a/app/views/index/reader.phtml
+++ b/app/views/index/reader.phtml
@@ -18,15 +18,15 @@ $lazyload = FreshRSS_Context::userConf()->lazyload;
$lastEntry = null;
$nbEntries = 0;
foreach ($this->entries as $entry):
- $lastEntry = $entry;
- $nbEntries++;
- ob_flush();
- /** @var FreshRSS_Entry */
+ /** @var FreshRSS_Entry|null $entry */
$entry = Minz_ExtensionManager::callHook('entry_before_display', $entry);
- if ($entry == null) {
+ if ($entry === null) {
continue;
}
+ ob_flush();
$this->entry = $entry;
+ $lastEntry = $entry;
+ $nbEntries++;
//We most likely already have the feed object in cache, otherwise make a request
$this->feed = FreshRSS_Category::findFeed($this->categories, $entry->feedId()) ?? $entry->feed() ?? FreshRSS_Feed::default();