Show possible error messages.

This commit is contained in:
Michal Čihař
2006-03-16 22:13:52 +00:00
parent a70def98ca
commit 2741f16ecb
2 changed files with 7 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ $Source$
* libraries/plugin_interface.lib.php: Add support for hidden inputs.
* libraries/common.lib.php: Do not forget wrongly configured servers,
otherwise user gets warning only on first access (RFE #1451521).
* libraries/auth/config.auth.lib.php: Show possible error messages.
2006-03-15 Michal Čihař <michal@cihar.com>
* libraries/export/htmlexcel.php: Fix output handling (bug #1450555).

View File

@@ -126,7 +126,12 @@ function PMA_auth_fails()
echo '<p>' . $GLOBALS['strAccessDeniedExplanation'] . '</p>' . "\n";
}
}
PMA_mysqlDie($conn_error, '');
PMA_mysqlDie($conn_error, '', true, '', false);
}
if ( ! empty( $GLOBALS['PMA_errors'] ) && is_array( $GLOBALS['PMA_errors'] ) ) {
foreach ( $GLOBALS['PMA_errors'] as $error ) {
echo '<div class="error">' . $error . '</div>' . "\n";
}
}
?>
</td>