[ticket/10411] Ensure we only get services that do exist

PHPBB3-10411
This commit is contained in:
Joas Schilling 2013-02-25 19:01:35 +01:00
parent 46b75f4cf9
commit 12cc64e715

View file

@ -829,7 +829,7 @@ class acp_groups
// Invalid mode // Invalid mode
trigger_error($user->lang['NO_MODE'] . adm_back_link($this->u_action), E_USER_WARNING); trigger_error($user->lang['NO_MODE'] . adm_back_link($this->u_action), E_USER_WARNING);
} }
else if ($field) else if ($field && in_array($field, array('legend', 'teampage')))
{ {
$group_position = $phpbb_container->get('groupposition.' . $field); $group_position = $phpbb_container->get('groupposition.' . $field);