Code Duplication    Length = 2-2 lines in 2 locations

other/install.php 1 location

@@ 1751-1752 (lines=2) @@
1748
1749
	// Check if we need some stupid MySQL fix.
1750
	$server_version = $smcFunc['db_server_info']();
1751
	if (($db_type == 'mysql' || $db_type == 'mysqli') && in_array(substr($server_version, 0, 6), array('5.0.50', '5.0.51')))
1752
		updateSettings(array('db_mysql_group_by_fix' => '1'));
1753
1754
	// Some final context for the template.
1755
	$incontext['dir_still_writable'] = is_writable(dirname(__FILE__)) && substr(__FILE__, 1, 2) != ':\\';

other/upgrade.php 1 location

@@ 1562-1563 (lines=2) @@
1559
1560
	// Save the current database version.
1561
	$server_version = $smcFunc['db_server_info']();
1562
	if ($db_type == 'mysql' && in_array(substr($server_version, 0, 6), array('5.0.50', '5.0.51')))
1563
		updateSettings(array('db_mysql_group_by_fix' => '1'));
1564
1565
	if ($command_line)
1566
	{