| @@ 1647-1648 (lines=2) @@ | ||
| 1644 | ||
| 1645 | // Check if we need some stupid MySQL fix. |
|
| 1646 | $server_version = $smcFunc['db_server_info'](); |
|
| 1647 | if (($db_type == 'mysql' || $db_type == 'mysqli') && in_array(substr($server_version, 0, 6), array('5.0.50', '5.0.51'))) |
|
| 1648 | updateSettings(array('db_mysql_group_by_fix' => '1')); |
|
| 1649 | ||
| 1650 | // Some final context for the template. |
|
| 1651 | $incontext['dir_still_writable'] = is_writable(dirname(__FILE__)) && substr(__FILE__, 1, 2) != ':\\'; |
|
| @@ 2172-2173 (lines=2) @@ | ||
| 2169 | ||
| 2170 | // Save the current database version. |
|
| 2171 | $server_version = $smcFunc['db_server_info'](); |
|
| 2172 | if (($db_type == 'mysql' || $db_type == 'mysqli') && in_array(substr($server_version, 0, 6), array('5.0.50', '5.0.51'))) |
|
| 2173 | updateSettings(array('db_mysql_group_by_fix' => '1')); |
|
| 2174 | ||
| 2175 | if ($command_line) |
|
| 2176 | { |
|