Code Duplication    Length = 4-4 lines in 2 locations

Sources/Profile-Modify.php 2 locations

@@ 3159-3162 (lines=4) @@
3156
	// If we are changing group status, update permission cache as necessary.
3157
	if ($value != $old_profile['id_group'] || isset($profile_vars['additional_groups']))
3158
	{
3159
		if ($context['user']['is_owner'])
3160
			$_SESSION['mc']['time'] = 0;
3161
		else
3162
			updateSettings(array('settings_updated' => time()));
3163
	}
3164
3165
	// Announce to any hooks that we have changed groups, but don't allow them to change it.
@@ 4034-4037 (lines=4) @@
4031
	$addGroups = implode(',', array_flip($addGroups));
4032
4033
	// Ensure that we don't cache permissions if the group is changing.
4034
	if ($context['user']['is_owner'])
4035
		$_SESSION['mc']['time'] = 0;
4036
	else
4037
		updateSettings(array('settings_updated' => time()));
4038
4039
	updateMemberData($memID, array('id_group' => $newPrimary, 'additional_groups' => $addGroups));
4040