From 79062cf36819a668a6eb8a7ab458ef3cbaf05ddf Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Fri, 22 Jun 2007 16:34:32 +0000 Subject: ignore errors in finding img type --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') diff --git a/it.class b/it.class index ea8f0b1..1966c62 100644 --- a/it.class +++ b/it.class @@ -356,7 +356,7 @@ function _exec_quotevalue($value) function imageconvert($p) { $result = false; - $type = it::replace(array("jpeg" => "jpg", "tiff" => "tif"), image_type_to_extension(exif_imagetype($p['in']), false)); + $type = it::replace(array("jpeg" => "jpg", "tiff" => "tif"), image_type_to_extension(@exif_imagetype($p['in']), false)); $p += array('type' => $type, 'types' => "gif,jpg,png,bmp,tif,jp2"); if (it::match(",$type,", ",{$p['types']},")) # Valid type? -- cgit v1.2.3