From 0e54ba820855eca10475231a81dc1c1355a065b3 Mon Sep 17 00:00:00 2001 From: mohrt Date: Fri, 7 Mar 2003 18:36:37 +0000 Subject: [PATCH] suppress warning in html_image --- libs/plugins/function.html_image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/plugins/function.html_image.php b/libs/plugins/function.html_image.php index ed0df815..4bffbb6e 100644 --- a/libs/plugins/function.html_image.php +++ b/libs/plugins/function.html_image.php @@ -79,7 +79,7 @@ function smarty_function_html_image($params, &$smarty) } if(!isset($params['width']) || !isset($params['height'])) { - if(!$_image_data = getimagesize($_image_path)) { + if(!$_image_data = @getimagesize($_image_path)) { if(!file_exists($_image_path)) { $smarty->trigger_error("html_image: unable to find '$_image_path'", E_USER_ERROR); } else if(!is_readable($_image_path)) {