diff options
author | wn_ <[email protected]> | 2020-06-27 15:06:08 -0500 |
---|---|---|
committer | wn_ <[email protected]> | 2020-06-27 15:06:08 -0500 |
commit | 614d3ac1bfac8e3675479eab1853ecf9bb645af2 (patch) | |
tree | 6808199fc0ec45d8c94d44ab88bd99bce3b722b8 | |
parent | c352e872e9c54686e09ecb51cba1a59291d5b685 (diff) |
Properly check if OPML file was loaded during import.
-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 c4523f83f..9ef963f03 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(); |