mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
suppress warning in html_image
This commit is contained in:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user