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

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