From 5659b37948c17e5e68971a2464930bee3455dfa1 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Tue, 30 Jul 2024 12:01:59 +0200 Subject: Fix markAsReadUponGone regression (#6663) Regression from https://github.com/FreshRSS/FreshRSS/pull/5470 Was not working anymore when the feed was empty. Plus simplification of the logic when the feed is not empty --- app/Controllers/feedController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Controllers/feedController.php') diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php index ba5596a3c..730c13a23 100644 --- a/app/Controllers/feedController.php +++ b/app/Controllers/feedController.php @@ -515,7 +515,7 @@ class FreshRSS_feed_Controller extends FreshRSS_ActionController { } else { $newGuids = $feed->loadGuids($simplePie); $entries = $feed->loadEntries($simplePie); - $feedIsEmpty = $simplePiePush !== null && empty($newGuids); + $feedIsEmpty = $simplePiePush === null && empty($newGuids); $feedIsUnchanged = false; } $mtime = $feed->cacheModifiedTime() ?: time(); -- cgit v1.2.3