Code Duplication    Length = 9-9 lines in 2 locations

other/upgrade.php 1 location

@@ 1007-1015 (lines=9) @@
1004
		}
1005
	}
1006
	// Don't remove stat collection unless we unchecked the box for real, not from the loop.
1007
	elseif (empty($_POST['stats']) && empty($upcontext['allow_sm_stats']))
1008
		$smcFunc['db_query']('', '
1009
			DELETE FROM {db_prefix}settings
1010
			WHERE variable = {string:enable_sm_stats}',
1011
			array(
1012
				'enable_sm_stats' => 'enable_sm_stats',
1013
				'db_error_skip' => true,
1014
			)
1015
		);
1016
1017
	// Deleting old karma stuff?
1018
	if (!empty($_POST['delete_karma']))

other/install.php 1 location

@@ 1324-1332 (lines=9) @@
1321
		}
1322
	}
1323
	// Don't remove stat collection unless we unchecked the box for real, not from the loop.
1324
	elseif (empty($_POST['stats']) && empty($upcontext['allow_sm_stats']))
1325
		$smcFunc['db_query']('', '
1326
			DELETE FROM {db_prefix}settings
1327
			WHERE variable = {string:enable_sm_stats}',
1328
			array(
1329
				'enable_sm_stats' => 'enable_sm_stats',
1330
				'db_error_skip' => true,
1331
			)
1332
		);
1333
1334
	// Are we enabling SSL?
1335
	if (!empty($_POST['force_ssl']))