diff --git a/lib/thumbs.class.php b/lib/thumbs.class.php index 7b2a16b..9dc8ccb 100644 --- a/lib/thumbs.class.php +++ b/lib/thumbs.class.php @@ -54,6 +54,11 @@ class thumb { $image = call_user_func(self::IMAGE_HANDLERS[$type]['load'], $src); + if ($image == false) { + error_log("$src: Image Loading Failed"); + return "img/error.png"; + } + $srcwidth = imagesx($image); $srcheight = imagesy($image);