| @@ 1739-1740 (lines=2) @@ | ||
| 1736 | ||
| 1737 | // Check if we need some stupid MySQL fix. |
|
| 1738 | $server_version = $smcFunc['db_server_info'](); |
|
| 1739 | if (($db_type == 'mysql' || $db_type == 'mysqli') && in_array(substr($server_version, 0, 6), array('5.0.50', '5.0.51'))) |
|
| 1740 | updateSettings(array('db_mysql_group_by_fix' => '1')); |
|
| 1741 | ||
| 1742 | // Some final context for the template. |
|
| 1743 | $incontext['dir_still_writable'] = is_writable(dirname(__FILE__)) && substr(__FILE__, 1, 2) != ':\\'; |
|
| @@ 1564-1565 (lines=2) @@ | ||
| 1561 | ||
| 1562 | // Save the current database version. |
|
| 1563 | $server_version = $smcFunc['db_server_info'](); |
|
| 1564 | if ($db_type == 'mysql' && in_array(substr($server_version, 0, 6), array('5.0.50', '5.0.51'))) |
|
| 1565 | updateSettings(array('db_mysql_group_by_fix' => '1')); |
|
| 1566 | ||
| 1567 | if ($command_line) |
|
| 1568 | { |
|