mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-28 12:30:42 +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);
|
$db->sql_query($sql);
|
||||||
|
|
||||||
// Delete old avatar if present
|
// 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);
|
$driver->delete($user_row);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user