Code Duplication    Length = 8-8 lines in 2 locations

Sources/Profile-Modify.php 2 locations

@@ 2361-2368 (lines=8) @@
2358
	global $txt, $scripturl, $context, $modSettings, $sourcedir;
2359
2360
	// Because of the way this stuff works, we want to do this ourselves.
2361
	if (isset($_POST['edit_notify_topics']) || isset($_POST['remove_notify_topics']))
2362
	{
2363
		checkSession();
2364
		validateToken(str_replace('%u', $memID, 'profile-nt%u'), 'post');
2365
2366
		makeNotificationChanges($memID);
2367
		$context['profile_updated'] = $txt['profile_updated_own'];
2368
	}
2369
2370
	// Now set up for the token check.
2371
	$context['token_check'] = str_replace('%u', $memID, 'profile-nt%u');
@@ 2520-2527 (lines=8) @@
2517
	global $txt, $scripturl, $context, $sourcedir;
2518
2519
	// Because of the way this stuff works, we want to do this ourselves.
2520
	if (isset($_POST['edit_notify_boards']) || isset($_POSt['remove_notify_boards']))
2521
	{
2522
		checkSession();
2523
		validateToken(str_replace('%u', $memID, 'profile-nt%u'), 'post');
2524
2525
		makeNotificationChanges($memID);
2526
		$context['profile_updated'] = $txt['profile_updated_own'];
2527
	}
2528
2529
	// Now set up for the token check.
2530
	$context['token_check'] = str_replace('%u', $memID, 'profile-nt%u');