Skip to content

Commit

Permalink
Fix boolean being passed to method isImageString expecting a string
Browse files Browse the repository at this point in the history
Fixes #29
  • Loading branch information
ArthurHoaro committed Mar 27, 2021
1 parent 7780ddc commit 812253b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebThumbnailer/Finder/DefaultFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function find()
$content
);

if (empty($thumbnail) && ImageUtils::isImageString($content)) {
if (empty($thumbnail) && !empty($content) && ImageUtils::isImageString($content)) {
return $this->url;
}

Expand Down

0 comments on commit 812253b

Please sign in to comment.