Save bytes

This commit is contained in:
Jakub Vrana 2013-08-11 09:29:41 -07:00
parent 6160604023
commit 994fa4f1ea

View file

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