[ticket/11706] Use @ to suppress errors for getimagesize in remote avatar

PHPBB3-11706
This commit is contained in:
Marc Alexander 2013-07-14 15:13:09 -04:00
parent af69349398
commit a0e5f83311

View file

@ -93,7 +93,7 @@ class phpbb_avatar_driver_remote extends phpbb_avatar_driver
// Make sure getimagesize works...
if (function_exists('getimagesize'))
{
if (($width <= 0 || $height <= 0) && (($image_data = getimagesize($url)) === false))
if (($width <= 0 || $height <= 0) && (($image_data = @getimagesize($url)) === false))
{
$error[] = 'UNABLE_GET_IMAGE_SIZE';
return false;