1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-20 12:41:23 +02:00

changed check on initFromPath error in GD decoder

This commit is contained in:
Oliver Vogel
2017-02-23 17:15:05 +01:00
parent e37a76ec0c
commit c9a162592d

View File

@@ -42,7 +42,7 @@ class Decoder extends \Intervention\Image\AbstractDecoder
);
}
if ($core === false) {
if (empty($core)) {
throw new \Intervention\Image\Exception\NotReadableException(
"Unable to read image from file ({$path})."
);