mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 10:04:07 +02:00
Add sefeguard agains null
This commit is contained in:
@@ -137,7 +137,7 @@ if (isset($_GET["username"])) {
|
|||||||
$connection = connect();
|
$connection = connect();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_string($connection) || !$adminer->login($_GET["username"], get_password())) {
|
if (!is_object($connection) || !$adminer->login($_GET["username"], get_password())) {
|
||||||
auth_error();
|
auth_error();
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user