some more fixes suggested by loic

This commit is contained in:
Olivier Müller
2001-08-21 10:44:36 +00:00
parent bc9e34e0cd
commit 5be33c3f30
2 changed files with 3 additions and 8 deletions

View File

@@ -46,10 +46,8 @@ if (!defined('PMA_WINDOWS')) {
}
}
if (!$nomysql) { // small hack (temporary)
// MySQL Version
if (!defined('MYSQL_MAJOR_VERSION')) {
if (!defined('MYSQL_MAJOR_VERSION') && isset($link)) {
if (!empty($server)) {
$result = mysql_query('SELECT VERSION() AS version');
if ($result != FALSE && @mysql_num_rows($result) > 0) {
@@ -71,5 +69,4 @@ if (!defined('MYSQL_MAJOR_VERSION')) {
} // end if
}
}
?>