Code Duplication    Length = 2-2 lines in 2 locations

other/upgrade.php 1 location

@@ 1391-1392 (lines=2) @@
1388
1389
	// Save the current database version.
1390
	$server_version = $smcFunc['db_server_info']();
1391
	if ($db_type == 'mysql' && in_array(substr($server_version, 0, 6), array('5.0.50', '5.0.51')))
1392
		updateSettings(array('db_mysql_group_by_fix' => '1'));
1393
1394
	if ($command_line)
1395
	{

other/install.php 1 location

@@ 1642-1643 (lines=2) @@
1639
1640
	// Check if we need some stupid MySQL fix.
1641
	$server_version = $smcFunc['db_server_info']();
1642
	if (($db_type == 'mysql' || $db_type == 'mysqli') && in_array(substr($server_version, 0, 6), array('5.0.50', '5.0.51')))
1643
		updateSettings(array('db_mysql_group_by_fix' => '1'));
1644
1645
	// Some final context for the template.
1646
	$incontext['dir_still_writable'] = is_writable(dirname(__FILE__)) && substr(__FILE__, 1, 2) != ':\\';