Merge pull request #307 from wltb/master
Feedparser: Add important check for unknown feed type detection
This commit is contained in:
commit
a10de509f3
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ class FeedParser {
|
||||||
|
|
||||||
$root = $xpath->query("(//atom03:feed|//atom:feed|//channel|//rdf:rdf|//rdf:RDF)");
|
$root = $xpath->query("(//atom03:feed|//atom:feed|//channel|//rdf:rdf|//rdf:RDF)");
|
||||||
|
|
||||||
if ($root) {
|
if ($root && $root->length > 0) {
|
||||||
$root = $root->item(0);
|
$root = $root->item(0);
|
||||||
|
|
||||||
if ($root) {
|
if ($root) {
|
||||||
|
|
Loading…
Reference in a new issue