Fix check for no articles found in 'RSSUtils::update_rss_feed()'.
FeedParser will always return an array.
This commit is contained in:
@@ -679,7 +679,7 @@ class RSSUtils {
|
|||||||
|
|
||||||
$items = $rss->get_items();
|
$items = $rss->get_items();
|
||||||
|
|
||||||
if (!is_array($items)) {
|
if (count($items) === 0) {
|
||||||
Debug::log("no articles found.", Debug::LOG_VERBOSE);
|
Debug::log("no articles found.", Debug::LOG_VERBOSE);
|
||||||
|
|
||||||
$feed_obj->set([
|
$feed_obj->set([
|
||||||
|
|||||||
Reference in New Issue
Block a user