diff options
| author | 2022-06-23 13:26:22 +0200 | |
|---|---|---|
| committer | 2022-06-23 13:26:22 +0200 | |
| commit | 2a0b47a8a48df1db49a2234cf3567e6d76de9c62 (patch) | |
| tree | 00c85aa36229c43913e55d9115d9ae097ad4a2c6 /app/Models/Feed.php | |
| parent | 47ab9d5e77dc2949ad3d0b9be779f2cbb17652e8 (diff) | |
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
Diffstat (limited to 'app/Models/Feed.php')
| -rw-r--r-- | app/Models/Feed.php | 4 |
1 files changed, 0 insertions, 4 deletions
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(); |
