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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user