From 2a0b47a8a48df1db49a2234cf3567e6d76de9c62 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 23 Jun 2022 13:26:22 +0200 Subject: No XPath error on empty list (#4425) Set feed error state to true if the *list* of items cannot be find by XPath, but do not set the error state to true if that list happens to be empty (the resulting feed will be with an *empty* state instead of *error* state) Follow-up of https://github.com/FreshRSS/FreshRSS/pull/4220 --- app/Models/Feed.php | 4 ---- 1 file changed, 4 deletions(-) (limited to 'app/Models/Feed.php') diff --git a/app/Models/Feed.php b/app/Models/Feed.php index d4966f4e4..1fc2eebf4 100644 --- a/app/Models/Feed.php +++ b/app/Models/Feed.php @@ -636,10 +636,6 @@ class FreshRSS_Feed extends Minz_Model { return null; } - if (count($view->entries) < 1) { - return null; - } - $simplePie = customSimplePie(); $simplePie->set_raw_data($view->renderToString()); $simplePie->init(); -- cgit v1.2.3