summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-11-14 21:27:18 +0300
committerAndrew Dolgov <[email protected]>2021-11-14 21:27:18 +0300
commit20b6e37c850a20b9ebdbca89bb8fd83b7c0f791e (patch)
treef0f0426f465de6fab960d8a484932064b54e3b36
parentc352fbddde13273defe5a4fff6332f43ff427902 (diff)
fix false being returned where it shouldn't have been
-rw-r--r--init.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.php b/init.php
index 560facc..f3edc07 100644
--- a/init.php
+++ b/init.php
@@ -20,7 +20,7 @@ class Af_Fontanka extends Plugin {
$doc = new DOMDocument("1.0", "UTF-8");
if (!@$doc->loadHTML($tmp))
- return false;
+ return $article;
$xpath = new DOMXPath($doc);
$base_node = $xpath->query("//article")->item(0);