From ce36b27a0d01bcc61114028d0f8ec3d3e20d30de Mon Sep 17 00:00:00 2001 From: wn_ Date: Sun, 18 May 2025 16:08:13 +0000 Subject: Fix check for no articles found in 'RSSUtils::update_rss_feed()'. FeedParser will always return an array. --- classes/RSSUtils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/RSSUtils.php b/classes/RSSUtils.php index da5862c56..d367d91dc 100644 --- a/classes/RSSUtils.php +++ b/classes/RSSUtils.php @@ -679,7 +679,7 @@ class RSSUtils { $items = $rss->get_items(); - if (!is_array($items)) { + if (count($items) === 0) { Debug::log("no articles found.", Debug::LOG_VERBOSE); $feed_obj->set([ -- cgit v1.2.3-54-g00ecf