mysql_connect can return false on failure

This commit is contained in:
Michal Čihař
2007-11-15 07:43:03 +00:00
parent b9afe43a05
commit a3bdb36ba6

View File

@@ -255,7 +255,7 @@ function PMA_DBI_getError($link = null)
// return false; // return false;
} }
if (null !== $link) { if (null !== $link && false !== $link) {
$error_number = mysql_errno($link); $error_number = mysql_errno($link);
$error_message = mysql_error($link); $error_message = mysql_error($link);
} else { } else {