diff --git a/ChangeLog b/ChangeLog
index cd1b3c660..56362703a 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,10 @@ phpMyAdmin - ChangeLog
$Id$
$Source$
+2006-08-11 Marc Delisle
' . sprintf($GLOBALS['strAccessDeniedCreateConfig'], '', '') . '
' . "\n"; - } else { - echo '' . $GLOBALS['strAccessDeniedExplanation'] . '
' . "\n"; - } + // Check whether user has configured something + if ($_SESSION['PMA_Config']->source_mtime == 0) { + echo '' . sprintf($GLOBALS['strAccessDeniedCreateConfig'], '', '') . '
' . "\n"; + } elseif (!isset($GLOBALS['errno']) || (isset($GLOBALS['errno']) && $GLOBALS['errno'] != 2002) && $GLOBALS['errno'] != 2003) { + // if we display the "Server not responding" error, do not confuse users + // by telling them they have a settings problem + // (note: it's true that they could have a badly typed host name, but + // anyway the current $strAccessDeniedExplanation tells that the server + // rejected the connection, which is not really what happened) + // 2002 is the error given by mysqli + // 2003 is the error given by mysql + echo '' . $GLOBALS['strAccessDeniedExplanation'] . '
' . "\n"; } PMA_mysqlDie($conn_error, '', true, '', false); }