summaryrefslogtreecommitdiff
path: root/init.php
diff options
context:
space:
mode:
Diffstat (limited to 'init.php')
-rw-r--r--init.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.php b/init.php
index 76969e0..05d6831 100644
--- a/init.php
+++ b/init.php
@@ -20,7 +20,7 @@ class Af_GoodShowSir extends Plugin {
$found = false;
- if (@$doc->loadHTML($article["content"])) {
+ if (!empty($article["content"]) && @$doc->loadHTML($article["content"])) {
$xpath = new DOMXpath($doc);
$images = $xpath->query('(//img[contains(@src, \'goodshowsir.co.uk\')])');