aboutsummaryrefslogtreecommitdiff
path: root/lib/marienfressinaud/lib_opml/src/LibOpml/LibOpml.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/marienfressinaud/lib_opml/src/LibOpml/LibOpml.php')
-rw-r--r--lib/marienfressinaud/lib_opml/src/LibOpml/LibOpml.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/marienfressinaud/lib_opml/src/LibOpml/LibOpml.php b/lib/marienfressinaud/lib_opml/src/LibOpml/LibOpml.php
index 4ba0df821..ed5e51756 100644
--- a/lib/marienfressinaud/lib_opml/src/LibOpml/LibOpml.php
+++ b/lib/marienfressinaud/lib_opml/src/LibOpml/LibOpml.php
@@ -153,7 +153,7 @@ class LibOpml
$result = false;
}
- if (!$result) {
+ if (!$result || !$dom->documentElement) {
throw new Exception('OPML string is not valid XML');
}