1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-10 08:34:20 +02:00

Add sefeguard agains null

This commit is contained in:
Jakub Vrana
2014-01-10 11:16:36 -08:00
parent 99c70e9ef6
commit 0830f5ce89

View File

@@ -137,7 +137,7 @@ if (isset($_GET["username"])) {
$connection = connect();
}
if (is_string($connection) || !$adminer->login($_GET["username"], get_password())) {
if (!is_object($connection) || !$adminer->login($_GET["username"], get_password())) {
auth_error();
exit;
}