Code Duplication    Length = 2-2 lines in 2 locations

other/upgrade.php 1 location

@@ 1446-1447 (lines=2) @@
1443
1444
	// Save the current database version.
1445
	$server_version = $smcFunc['db_server_info']();
1446
	if ($db_type == 'mysql' && in_array(substr($server_version, 0, 6), array('5.0.50', '5.0.51')))
1447
		updateSettings(array('db_mysql_group_by_fix' => '1'));
1448
1449
	if ($command_line)
1450
	{

other/install.php 1 location

@@ 1726-1727 (lines=2) @@
1723
1724
	// Check if we need some stupid MySQL fix.
1725
	$server_version = $smcFunc['db_server_info']();
1726
	if (($db_type == 'mysql' || $db_type == 'mysqli') && in_array(substr($server_version, 0, 6), array('5.0.50', '5.0.51')))
1727
		updateSettings(array('db_mysql_group_by_fix' => '1'));
1728
1729
	// Some final context for the template.
1730
	$incontext['dir_still_writable'] = is_writable(dirname(__FILE__)) && substr(__FILE__, 1, 2) != ':\\';