Code Duplication    Length = 2-2 lines in 2 locations

other/install.php 1 location

@@ 1682-1683 (lines=2) @@
1679
1680
	// Check if we need some stupid MySQL fix.
1681
	$server_version = $smcFunc['db_server_info']();
1682
	if (($db_type == 'mysql' || $db_type == 'mysqli') && in_array(substr($server_version, 0, 6), array('5.0.50', '5.0.51')))
1683
		updateSettings(array('db_mysql_group_by_fix' => '1'));
1684
1685
	// Some final context for the template.
1686
	$incontext['dir_still_writable'] = is_writable(dirname(__FILE__)) && substr(__FILE__, 1, 2) != ':\\';

other/upgrade.php 1 location

@@ 1437-1438 (lines=2) @@
1434
1435
	// Save the current database version.
1436
	$server_version = $smcFunc['db_server_info']();
1437
	if ($db_type == 'mysql' && in_array(substr($server_version, 0, 6), array('5.0.50', '5.0.51')))
1438
		updateSettings(array('db_mysql_group_by_fix' => '1'));
1439
1440
	if ($command_line)
1441
	{