Code Duplication    Length = 2-2 lines in 2 locations

Sources/Profile-Modify.php 2 locations

@@ 3871-3872 (lines=2) @@
3868
		}
3869
3870
		// If this is their old primary, can we change it?
3871
		if ($row['id_group'] == $old_profile['id_group'] && ($row['group_type'] > 1 || $context['can_manage_membergroups']) && $canChangePrimary !== false)
3872
			$canChangePrimary = 1;
3873
3874
		// If we are not doing a force primary move, don't do it automatically if current primary is not 0.
3875
		if ($changeType != 'primary' && $old_profile['id_group'] != 0)
@@ 3879-3880 (lines=2) @@
3876
			$canChangePrimary = false;
3877
3878
		// If this is the one we are acting on, can we even act?
3879
		if ((!$context['can_manage_protected'] && $row['group_type'] == 1) || (!$context['can_manage_membergroups'] && $row['group_type'] == 0))
3880
			$canChangePrimary = false;
3881
	}
3882
	$smcFunc['db_free_result']($request);
3883