Add sefeguard agains null
This commit is contained in:
parent
99c70e9ef6
commit
0830f5ce89
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue