summaryrefslogtreecommitdiff
path: root/plugins/af_comics/filters/af_comics_dilbert.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-03-05 10:07:34 +0300
committerAndrew Dolgov <[email protected]>2021-03-05 10:07:34 +0300
commitc8883d344029baeb83f4285144e734414f7ae737 (patch)
treeda2c85cd1efa4aba1761420b40e5775ef838e501 /plugins/af_comics/filters/af_comics_dilbert.php
parentbc2953b5e7623800a4e9241aad67a045da20763a (diff)
af_comics filters: don't try to load empty html
Diffstat (limited to 'plugins/af_comics/filters/af_comics_dilbert.php')
-rw-r--r--plugins/af_comics/filters/af_comics_dilbert.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/af_comics/filters/af_comics_dilbert.php b/plugins/af_comics/filters/af_comics_dilbert.php
index 00aad78f2..49fa54cfa 100644
--- a/plugins/af_comics/filters/af_comics_dilbert.php
+++ b/plugins/af_comics/filters/af_comics_dilbert.php
@@ -19,7 +19,7 @@ class Af_Comics_Dilbert extends Af_ComicFilter {
$doc = new DOMDocument();
- if (@$doc->loadHTML($res)) {
+ if ($res && $doc->loadHTML($res)) {
$xpath = new DOMXPath($doc);
// Get the image container