]> git.joonet.de Git - adminer.git/commitdiff
Save bytes
authorJakub Vrana <jakub@vrana.cz>
Sun, 11 Aug 2013 16:29:41 +0000 (09:29 -0700)
committerJakub Vrana <jakub@vrana.cz>
Sun, 11 Aug 2013 16:29:41 +0000 (09:29 -0700)
adminer/include/auth.inc.php

index cae42afd83c1c372af537a392cec16e46d98c4ac..c53e1ca70b4c95d2a1e527f656f8fc5fbfcb207c 100644 (file)
@@ -117,10 +117,10 @@ function set_password($vendor, $server, $username, $password) {
 function get_password() {
        $return = get_session("pwds");
        if (is_array($return)) {
-               if (!$_COOKIE["adminer_key"]) {
-                       return false;
-               }
-               $return = decrypt_string($return[0], $_COOKIE["adminer_key"]);
+               $return = ($_COOKIE["adminer_key"]
+                       ? decrypt_string($return[0], $_COOKIE["adminer_key"])
+                       : false
+               );
        }
        return $return;
 }