Skip to content

Commit

Permalink
Merge pull request #32 from ArthurHoaro/fix/type-issue
Browse files Browse the repository at this point in the history
Fix boolean being passed to method isImageString expecting a string
  • Loading branch information
ArthurHoaro authored Mar 27, 2021
2 parents 7780ddc + 812253b commit 5f755df
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 5f755df

Please sign in to comment.