mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[feature/avatars] Do not assign in an if statement
PHPBB3-10018
This commit is contained in:
parent
a1132fc5c7
commit
b2b812f171
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue