Code Duplication    Length = 9-9 lines in 2 locations

other/install.php 1 location

@@ 1336-1344 (lines=9) @@
1333
		}
1334
	}
1335
	// Don't remove stat collection unless we unchecked the box for real, not from the loop.
1336
	elseif (empty($_POST['stats']) && empty($upcontext['allow_sm_stats']))
1337
		$smcFunc['db_query']('', '
1338
			DELETE FROM {db_prefix}settings
1339
			WHERE variable = {string:enable_sm_stats}',
1340
			array(
1341
				'enable_sm_stats' => 'enable_sm_stats',
1342
				'db_error_skip' => true,
1343
			)
1344
		);
1345
1346
	// Are we enabling SSL?
1347
	if (!empty($_POST['force_ssl']))

other/upgrade.php 1 location

@@ 1116-1124 (lines=9) @@
1113
		}
1114
	}
1115
	// Don't remove stat collection unless we unchecked the box for real, not from the loop.
1116
	elseif (empty($_POST['stats']) && empty($upcontext['allow_sm_stats']))
1117
		$smcFunc['db_query']('', '
1118
			DELETE FROM {db_prefix}settings
1119
			WHERE variable = {string:enable_sm_stats}',
1120
			array(
1121
				'enable_sm_stats' => 'enable_sm_stats',
1122
				'db_error_skip' => true,
1123
			)
1124
		);
1125
1126
	// Deleting old karma stuff?
1127
	if (!empty($_POST['delete_karma']))