Просмотр исходного кода

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
Alexandre Alapetite 3 лет назад
Родитель
Сommit
2a0b47a8a4
1 измененных файлов с 0 добавлено и 4 удалено
  1. 0 4
      app/Models/Feed.php

+ 0 - 4
app/Models/Feed.php

@@ -636,10 +636,6 @@ class FreshRSS_Feed extends Minz_Model {
 			return null;
 			return null;
 		}
 		}
 
 
-		if (count($view->entries) < 1) {
-			return null;
-		}
-
 		$simplePie = customSimplePie();
 		$simplePie = customSimplePie();
 		$simplePie->set_raw_data($view->renderToString());
 		$simplePie->set_raw_data($view->renderToString());
 		$simplePie->init();
 		$simplePie->init();