Code Duplication    Length = 2-2 lines in 2 locations

other/install.php 1 location

@@ 1650-1651 (lines=2) @@
1647
1648
	// Check if we need some stupid MySQL fix.
1649
	$server_version = $smcFunc['db_server_info']();
1650
	if (($db_type == 'mysql' || $db_type == 'mysqli') && in_array(substr($server_version, 0, 6), array('5.0.50', '5.0.51')))
1651
		updateSettings(array('db_mysql_group_by_fix' => '1'));
1652
1653
	// Some final context for the template.
1654
	$incontext['dir_still_writable'] = is_writable(dirname(__FILE__)) && substr(__FILE__, 1, 2) != ':\\';

other/upgrade.php 1 location

@@ 1411-1412 (lines=2) @@
1408
1409
	// Save the current database version.
1410
	$server_version = $smcFunc['db_server_info']();
1411
	if ($db_type == 'mysql' && in_array(substr($server_version, 0, 6), array('5.0.50', '5.0.51')))
1412
		updateSettings(array('db_mysql_group_by_fix' => '1'));
1413
1414
	if ($command_line)
1415
	{