From 0123495cb7bf1382db009c33cbe219c238b1186c Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 15 Jun 2004 00:16:59 +0000 Subject: [PATCH] errors when invalid login --- ChangeLog | 2 ++ libraries/dbi/mysql.dbi.lib.php | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) 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);