suppress warning in html_image

This commit is contained in:
mohrt
2003-03-07 18:36:37 +00:00
parent 0631ea18b4
commit 0e54ba8208

View File

@@ -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)) {