diff options
Diffstat (limited to 'classes/feedparser.php')
-rw-r--r-- | classes/feedparser.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/feedparser.php b/classes/feedparser.php index 9677164d3..daba271fb 100644 --- a/classes/feedparser.php +++ b/classes/feedparser.php @@ -53,7 +53,7 @@ class FeedParser { $root = $xpath->query("(//atom03:feed|//atom:feed|//channel|//rdf:rdf|//rdf:RDF)"); - if ($root && $root->length > 0) { + if (!empty($root) && $root->length > 0) { $root = $root->item(0); if ($root) { @@ -106,7 +106,7 @@ class FeedParser { $articles = $xpath->query("//atom:entry"); - if (!$articles || $articles->length == 0) + if (empty($articles) || $articles->length == 0) $articles = $xpath->query("//atom03:entry"); foreach ($articles as $article) { |