Code Duplication    Length = 9-9 lines in 2 locations

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']))

other/install.php 1 location

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