Code Duplication    Length = 2-2 lines in 2 locations

Sources/Profile-Modify.php 2 locations

@@ 3892-3893 (lines=2) @@
3889
		}
3890
3891
		// If this is their old primary, can we change it?
3892
		if ($row['id_group'] == $old_profile['id_group'] && ($row['group_type'] > 1 || $context['can_manage_membergroups']) && $canChangePrimary !== false)
3893
			$canChangePrimary = 1;
3894
3895
		// If we are not doing a force primary move, don't do it automatically if current primary is not 0.
3896
		if ($changeType != 'primary' && $old_profile['id_group'] != 0)
@@ 3900-3901 (lines=2) @@
3897
			$canChangePrimary = false;
3898
3899
		// If this is the one we are acting on, can we even act?
3900
		if ((!$context['can_manage_protected'] && $row['group_type'] == 1) || (!$context['can_manage_membergroups'] && $row['group_type'] == 0))
3901
			$canChangePrimary = false;
3902
	}
3903
	$smcFunc['db_free_result']($request);
3904