Code Duplication    Length = 4-4 lines in 2 locations

Sources/Profile-Modify.php 2 locations

@@ 3120-3123 (lines=4) @@
3117
	// If we are changing group status, update permission cache as necessary.
3118
	if ($value != $old_profile['id_group'] || isset($profile_vars['additional_groups']))
3119
	{
3120
		if ($context['user']['is_owner'])
3121
			$_SESSION['mc']['time'] = 0;
3122
		else
3123
			updateSettings(array('settings_updated' => time()));
3124
	}
3125
3126
	// Announce to any hooks that we have changed groups, but don't allow them to change it.
@@ 3997-4000 (lines=4) @@
3994
	$addGroups = implode(',', array_flip($addGroups));
3995
3996
	// Ensure that we don't cache permissions if the group is changing.
3997
	if ($context['user']['is_owner'])
3998
		$_SESSION['mc']['time'] = 0;
3999
	else
4000
		updateSettings(array('settings_updated' => time()));
4001
4002
	updateMemberData($memID, array('id_group' => $newPrimary, 'additional_groups' => $addGroups));
4003