phpBB

Code Changes

File: includes/acp/acp_permission_roles.php

  Unmodified   Added   Modified   Removed
Line 179Line 179
					$db->sql_freeresult($result);

// Make sure we only print out the error if we add the role or change it's name

					$db->sql_freeresult($result);

// Make sure we only print out the error if we add the role or change it's name

					if ($row && ($mode == 'add' || ($mode == 'edit' && $role_row['role_name'] != $role_name)))

					if ($row && ($action == 'add' || ($action == 'edit' && $role_row['role_name'] != $role_name)))

					{
trigger_error(sprintf($user->lang['ROLE_NAME_ALREADY_EXIST'], $role_name) . adm_back_link($this->u_action), E_USER_WARNING);
}

					{
trigger_error(sprintf($user->lang['ROLE_NAME_ALREADY_EXIST'], $role_name) . adm_back_link($this->u_action), E_USER_WARNING);
}