mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 11:45:56 +00:00
deal with several DOMElement-related errors
This commit is contained in:
@@ -65,10 +65,12 @@ class FeedParser {
|
||||
|
||||
$this->xpath = $xpath;
|
||||
|
||||
$root = $xpath->query("(//atom03:feed|//atom:feed|//channel|//rdf:rdf|//rdf:RDF)");
|
||||
$root_list = $xpath->query("(//atom03:feed|//atom:feed|//channel|//rdf:rdf|//rdf:RDF)");
|
||||
|
||||
if (!empty($root) && $root->length > 0) {
|
||||
$root = $root->item(0);
|
||||
if (!empty($root_list) && $root_list->length > 0) {
|
||||
|
||||
/** @var DOMElement|false $root */
|
||||
$root = $root_list->item(0);
|
||||
|
||||
if ($root) {
|
||||
switch (mb_strtolower($root->tagName)) {
|
||||
|
||||
Reference in New Issue
Block a user