mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/12822] Remove "None" option from avatar select boxes
This option is just used for deleting avatars for which we already have a checkbox. PHPBB3-12822
This commit is contained in:
@@ -69,6 +69,11 @@ class gravatar extends \phpbb\avatar\driver\driver
|
||||
$row['avatar_width'] = $request->variable('avatar_gravatar_width', 0);
|
||||
$row['avatar_height'] = $request->variable('avatar_gravatar_height', 0);
|
||||
|
||||
if (empty($row['avatar']))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!function_exists('validate_data'))
|
||||
{
|
||||
require($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext);
|
||||
|
@@ -120,7 +120,6 @@ class local extends \phpbb\avatar\driver\driver
|
||||
|
||||
if (empty($category) || empty($file))
|
||||
{
|
||||
$error[] = 'NO_AVATAR_SELECTED';
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@@ -130,7 +130,6 @@ class upload extends \phpbb\avatar\driver\driver
|
||||
}
|
||||
else
|
||||
{
|
||||
$error[] = 'NO_AVATAR_SELECTED';
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user