mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00: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:
commit
1891e24ea6
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