From: Jakub Vrana Date: Fri, 10 Jan 2014 19:16:36 +0000 (-0800) Subject: Add sefeguard agains null X-Git-Tag: v4.0.1~5 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=0830f5ce898eb760937910be4396e32cab451d40;p=adminer.git Add sefeguard agains null --- diff --git a/adminer/include/auth.inc.php b/adminer/include/auth.inc.php index c208a94d..ef2d7dc3 100644 --- a/adminer/include/auth.inc.php +++ b/adminer/include/auth.inc.php @@ -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; }