From 812253b2d454e2a7ed292ab66b89863b651e5b13 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 27 Mar 2021 13:46:42 +0100 Subject: [PATCH] Fix boolean being passed to method isImageString expecting a string Fixes #29 --- src/WebThumbnailer/Finder/DefaultFinder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WebThumbnailer/Finder/DefaultFinder.php b/src/WebThumbnailer/Finder/DefaultFinder.php index 8f463c0..4a553af 100644 --- a/src/WebThumbnailer/Finder/DefaultFinder.php +++ b/src/WebThumbnailer/Finder/DefaultFinder.php @@ -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; }