mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 02:51:35 +02:00
[feature/avatars] Do not assign in an if statement
PHPBB3-10018
This commit is contained in:
@@ -468,7 +468,8 @@ class acp_users
|
||||
$db->sql_query($sql);
|
||||
|
||||
// Delete old avatar if present
|
||||
if ($driver = $phpbb_avatar_manager->get_driver($user_row['user_avatar_type']))
|
||||
$driver = $phpbb_avatar_manager->get_driver($user_row['user_avatar_type']);
|
||||
if ($driver)
|
||||
{
|
||||
$driver->delete($user_row);
|
||||
}
|
||||
|
Reference in New Issue
Block a user