mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-12 20:56:40 +02:00
Merge pull request #4150 from rxu/ticket/14439
[ticket/14439] Do not call avatar manager if avatars are disabled
This commit is contained in:
@ -1899,8 +1899,12 @@ class acp_users
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Replace "error" strings with their real, localised form
|
// Avatar manager is not initialized if avatars are disabled
|
||||||
$error = $phpbb_avatar_manager->localize_errors($user, $error);
|
if (isset($phpbb_avatar_manager))
|
||||||
|
{
|
||||||
|
// Replace "error" strings with their real, localised form
|
||||||
|
$error = $phpbb_avatar_manager->localize_errors($user, $error);
|
||||||
|
}
|
||||||
|
|
||||||
$avatar = phpbb_get_user_avatar($user_row, 'USER_AVATAR', true);
|
$avatar = phpbb_get_user_avatar($user_row, 'USER_AVATAR', true);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user