1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-01 03:54:56 +02:00

Merge remote-tracking branch 'upstream/pr/1570' into develop

* upstream/pr/1570:
  [ticket/11706] Use @ to suppress errors for getimagesize in remote avatar
This commit is contained in:
David King 2013-07-14 16:02:09 -04:00
commit 1891e24ea6

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;