diff options
author | Andrew Dolgov <[email protected]> | 2021-02-06 09:30:05 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-06 09:30:05 +0300 |
commit | 26eb2154d6917093a0e33e5b785c038b6ae2d01f (patch) | |
tree | a1c8cd08c4bbf7ed0860dc86bcea8851df5ab2f3 | |
parent | 73c432aba5c79809736d82fe28c67f051e09500e (diff) |
don't try to load empty html
-rw-r--r-- | init.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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\')])'); |