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

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