Update AvasScraper.php

This commit is contained in:
2020-10-03 20:11:26 +05:00
parent ee8e34e0e3
commit 747dd5d11f

View File

@@ -25,7 +25,7 @@ class AvasScraper
$title = $crawler->filter('h1')->first()->text(); $title = $crawler->filter('h1')->first()->text();
if($crawler->filter('figure img')->count() == 1) if($crawler->filter('figure img')->count() > 0)
{ {
$this->image = $crawler->filter('figure img')->first()->attr('src'); $this->image = $crawler->filter('figure img')->first()->attr('src');
} }