1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/14272] Make sure phpbb_avatar_manager was defined

PHPBB3-14272
This commit is contained in:
Marc Alexander
2015-12-01 14:59:43 +01:00
parent c99386e155
commit 7705017f63
3 changed files with 8 additions and 3 deletions

View File

@@ -462,9 +462,11 @@ class ucp_groups
$avatar_data = null;
$avatar_error = array();
/** @var \phpbb\avatar\manager $phpbb_avatar_manager */
$phpbb_avatar_manager = $phpbb_container->get('avatar.manager');
if ($config['allow_avatar'])
{
$phpbb_avatar_manager = $phpbb_container->get('avatar.manager');
$avatar_drivers = $phpbb_avatar_manager->get_enabled_drivers();
// This is normalised data, without the group_ prefix