mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-21 18:44:37 +02:00
[feature/avatars] Use in_array() and fix tabbing
PHPBB3-10018
This commit is contained in:
@ -70,16 +70,16 @@ class phpbb_avatar_manager
|
|||||||
{
|
{
|
||||||
case AVATAR_GALLERY:
|
case AVATAR_GALLERY:
|
||||||
$avatar_type = 'avatar.driver.local';
|
$avatar_type = 'avatar.driver.local';
|
||||||
break;
|
break;
|
||||||
case AVATAR_UPLOAD:
|
case AVATAR_UPLOAD:
|
||||||
$avatar_type = 'avatar.driver.upload';
|
$avatar_type = 'avatar.driver.upload';
|
||||||
break;
|
break;
|
||||||
case AVATAR_REMOTE:
|
case AVATAR_REMOTE:
|
||||||
$avatar_type = 'avatar.driver.remote';
|
$avatar_type = 'avatar.driver.remote';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (false === array_search($avatar_type, self::$valid_drivers))
|
if (!in_array($avatar_type, self::$valid_drivers))
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user