Code Duplication    Length = 2-2 lines in 2 locations

Sources/Profile-Modify.php 2 locations

@@ 3908-3909 (lines=2) @@
3905
		}
3906
3907
		// If this is their old primary, can we change it?
3908
		if ($row['id_group'] == $old_profile['id_group'] && ($row['group_type'] > 1 || $context['can_manage_membergroups']) && $canChangePrimary !== false)
3909
			$canChangePrimary = 1;
3910
3911
		// If we are not doing a force primary move, don't do it automatically if current primary is not 0.
3912
		if ($changeType != 'primary' && $old_profile['id_group'] != 0)
@@ 3916-3917 (lines=2) @@
3913
			$canChangePrimary = false;
3914
3915
		// If this is the one we are acting on, can we even act?
3916
		if ((!$context['can_manage_protected'] && $row['group_type'] == 1) || (!$context['can_manage_membergroups'] && $row['group_type'] == 0))
3917
			$canChangePrimary = false;
3918
	}
3919
	$smcFunc['db_free_result']($request);
3920