some more fixes suggested by loic
This commit is contained in:
@@ -46,10 +46,8 @@ if (!defined('PMA_WINDOWS')) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$nomysql) { // small hack (temporary)
|
|
||||||
|
|
||||||
// MySQL Version
|
// MySQL Version
|
||||||
if (!defined('MYSQL_MAJOR_VERSION')) {
|
if (!defined('MYSQL_MAJOR_VERSION') && isset($link)) {
|
||||||
if (!empty($server)) {
|
if (!empty($server)) {
|
||||||
$result = mysql_query('SELECT VERSION() AS version');
|
$result = mysql_query('SELECT VERSION() AS version');
|
||||||
if ($result != FALSE && @mysql_num_rows($result) > 0) {
|
if ($result != FALSE && @mysql_num_rows($result) > 0) {
|
||||||
@@ -71,5 +69,4 @@ if (!defined('MYSQL_MAJOR_VERSION')) {
|
|||||||
} // end if
|
} // end if
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
|
@@ -95,9 +95,7 @@ if (!defined('__LIB_INC__')){
|
|||||||
}
|
}
|
||||||
|
|
||||||
// defines wants to connect mysql, and at this place there are no connexion yet...
|
// defines wants to connect mysql, and at this place there are no connexion yet...
|
||||||
$nomysql = 1;
|
|
||||||
include('./defines.inc.php3');
|
include('./defines.inc.php3');
|
||||||
$nomysql = 0;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -136,10 +134,10 @@ if (!defined('__LIB_INC__')){
|
|||||||
{
|
{
|
||||||
global $sql_query;
|
global $sql_query;
|
||||||
|
|
||||||
if (empty($error_message)) {
|
if (!$error_message) {
|
||||||
$error_message = mysql_error();
|
$error_message = mysql_error();
|
||||||
}
|
}
|
||||||
if (empty($the_query)) {
|
if (!$the_query) {
|
||||||
$the_query = $GLOBALS['sql_query'];
|
$the_query = $GLOBALS['sql_query'];
|
||||||
}
|
}
|
||||||
$hist = (isset($GLOBALS['btnDrop'])) ? -2 : -1;
|
$hist = (isset($GLOBALS['btnDrop'])) ? -2 : -1;
|
||||||
|
Reference in New Issue
Block a user