1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-31 19:49:20 +02:00

[feature/avatars] Do not assign in an if statement

PHPBB3-10018
This commit is contained in:
Igor Wiedler 2012-04-08 22:13:10 +02:00
parent a1132fc5c7
commit b2b812f171

View File

@ -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);
}