summaryrefslogtreecommitdiff
path: root/plugins/af_comics/filters/af_comics_gocomics.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-11-15 08:26:02 +0300
committerAndrew Dolgov <[email protected]>2021-11-15 08:26:02 +0300
commitaa924d9ee7674cfe649d498ce3cbcdb093bca956 (patch)
treeb110e547ade2d043bca294ecb5af4b96fba365b9 /plugins/af_comics/filters/af_comics_gocomics.php
parenta92070da068f1c4be7a35c7f92a5905c1307335b (diff)
deal with several DOMElement-related errors
Diffstat (limited to 'plugins/af_comics/filters/af_comics_gocomics.php')
-rw-r--r--plugins/af_comics/filters/af_comics_gocomics.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/af_comics/filters/af_comics_gocomics.php b/plugins/af_comics/filters/af_comics_gocomics.php
index 71d387918..f474312ae 100644
--- a/plugins/af_comics/filters/af_comics_gocomics.php
+++ b/plugins/af_comics/filters/af_comics_gocomics.php
@@ -50,6 +50,7 @@ class Af_Comics_Gocomics extends Af_ComicFilter {
if (@$doc->loadHTML($body)) {
$xpath = new DOMXPath($doc);
+ /** @var DOMElement|false $node */
$node = $xpath->query('//picture[contains(@class, "item-comic-image")]/img')->item(0);
if ($node) {