From a3a236d2e11b160b6d7631a32d73cf25046427f4 Mon Sep 17 00:00:00 2001 From: Lars Jung Date: Tue, 23 Jul 2013 20:39:24 +0200 Subject: [PATCH] Ignore warnings for unsupported images. --- src/_h5ai/server/php/inc/Thumb.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_h5ai/server/php/inc/Thumb.php b/src/_h5ai/server/php/inc/Thumb.php index d4b6dacd..4365040d 100644 --- a/src/_h5ai/server/php/inc/Thumb.php +++ b/src/_h5ai/server/php/inc/Thumb.php @@ -57,7 +57,7 @@ class Thumb { $et = false; if (function_exists("exif_thumbnail")) { - $et = exif_thumbnail($source_abs_path); + $et = @exif_thumbnail($source_abs_path); } if($et !== false) { file_put_contents($thumb_abs_path, $et);