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;
}