diff options
author | fox <[email protected]> | 2020-07-01 14:48:02 +0000 |
---|---|---|
committer | Gogs <[email protected]> | 2020-07-01 14:48:02 +0000 |
commit | 68b78ecd3d90fb6cb35d08a96ed74b7a59470c39 (patch) | |
tree | 79f7274e0bfa702169dca8bd057471ebaf3693a6 /classes/opml.php | |
parent | b6372a846dd8854a90852a72c63a65c15ca1f8b0 (diff) | |
parent | 614d3ac1bfac8e3675479eab1853ecf9bb645af2 (diff) |
Merge branch 'bugfix/invalid-opml' of wn/tt-rss into master
Diffstat (limited to 'classes/opml.php')
-rw-r--r-- | classes/opml.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/opml.php b/classes/opml.php index bea3164a4..d44ffe32c 100644 --- a/classes/opml.php +++ b/classes/opml.php @@ -606,7 +606,7 @@ class Opml extends Handler_Protected { if (is_file($tmp_file)) { $doc = new DOMDocument(); libxml_disable_entity_loader(false); - $doc->load($tmp_file); + $loaded = $doc->load($tmp_file); libxml_disable_entity_loader(true); unlink($tmp_file); } else if (!$doc) { @@ -614,7 +614,7 @@ class Opml extends Handler_Protected { return; } - if ($doc) { + if ($loaded) { $this->pdo->beginTransaction(); $this->opml_import_category($doc, false, $owner_uid, false); $this->pdo->commit(); |