mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/11706] Use @ to suppress errors for getimagesize in remote avatar
PHPBB3-11706
This commit is contained in:
parent
af69349398
commit
a0e5f83311
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ class phpbb_avatar_driver_remote extends phpbb_avatar_driver
|
||||||
// Make sure getimagesize works...
|
// Make sure getimagesize works...
|
||||||
if (function_exists('getimagesize'))
|
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';
|
$error[] = 'UNABLE_GET_IMAGE_SIZE';
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue