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

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