diff --git a/ChangeLog b/ChangeLog index 3772e188c..84c4563f7 100755 --- a/ChangeLog +++ b/ChangeLog @@ -20,6 +20,8 @@ $Source$ * libraries/common.lib.php: proper revision check * libraries/select_theme.lib.php: remove unneeded counter, and fix undefined $PHP_SELF + * libraries/dbi/mysql.dbi.lib.php: errors on mysql_errno() when the + login is invalid 2004-06-13 Marc Delisle * many files: redesign part 3, thanks to Michael Keck (mkkeck). diff --git a/libraries/dbi/mysql.dbi.lib.php b/libraries/dbi/mysql.dbi.lib.php index a8c86f2f5..95b34f9f3 100644 --- a/libraries/dbi/mysql.dbi.lib.php +++ b/libraries/dbi/mysql.dbi.lib.php @@ -1,7 +1,7 @@ = 40100) { + } elseif ($error && defined('PMA_MYSQL_INT_VERSION') && PMA_MYSQL_INT_VERSION >= 40100) { $error = '#' . ((string) $error) . ' - ' . $error_message; } elseif ($error) { $error = '#' . ((string) $error) . ' - ' . PMA_convert_display_charset($error_message);