Code Duplication    Length = 8-8 lines in 2 locations

Sources/Profile-Modify.php 2 locations

@@ 2256-2263 (lines=8) @@
2253
	global $txt, $scripturl, $context, $modSettings, $sourcedir;
2254
2255
	// Because of the way this stuff works, we want to do this ourselves.
2256
	if (isset($_POST['edit_notify_topics']) || isset($_POST['remove_notify_topics']))
2257
	{
2258
		checkSession();
2259
		validateToken(str_replace('%u', $memID, 'profile-nt%u'), 'post');
2260
2261
		makeNotificationChanges($memID);
2262
		$context['profile_updated'] = $txt['profile_updated_own'];
2263
	}
2264
2265
	// Now set up for the token check.
2266
	$context['token_check'] = str_replace('%u', $memID, 'profile-nt%u');
@@ 2415-2422 (lines=8) @@
2412
	global $txt, $scripturl, $context, $sourcedir;
2413
2414
	// Because of the way this stuff works, we want to do this ourselves.
2415
	if (isset($_POST['edit_notify_boards']) || isset($_POSt['remove_notify_boards']))
2416
	{
2417
		checkSession();
2418
		validateToken(str_replace('%u', $memID, 'profile-nt%u'), 'post');
2419
2420
		makeNotificationChanges($memID);
2421
		$context['profile_updated'] = $txt['profile_updated_own'];
2422
	}
2423
2424
	// Now set up for the token check.
2425
	$context['token_check'] = str_replace('%u', $memID, 'profile-nt%u');