From e3c3212f34cd36f83ea05c7760f625a9c4d4f819 Mon Sep 17 00:00:00 2001 From: Aleksandr Yakovlev Date: Tue, 28 Feb 2023 17:47:14 +0600 Subject: [PATCH] =?UTF-8?q?=D0=A7=D0=B8=D0=BD=D0=B8=D0=BC=20=D0=BF=D0=B0?= =?UTF-8?q?=D1=80=D1=81=D0=B5=D1=80=20Anivisual=20(=D1=87=D0=B0=D1=81?= =?UTF-8?q?=D1=82=D0=B8=D1=87=D0=BD=D0=BE)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit См. #1344 --- app/Sources/Anivisual.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Sources/Anivisual.php b/app/Sources/Anivisual.php index fdb88ac..4b7ec95 100644 --- a/app/Sources/Anivisual.php +++ b/app/Sources/Anivisual.php @@ -58,7 +58,10 @@ class Anivisual extends Source { unset($text); $this->dom->filter('#allEntries .entryBlock')->each(function($gameBlock) { // Get the game link - $link = $gameBlock->filter('.novel-tmb a')->first(); + $link = $gameBlock->filter('.novel-tmb a')->first(); + if (!isset($link) || $link->count() === 0) { + return; + } $link = 'http://anivisual.net'.$link->attr('href'); $this->page($link); });