Save bytes
This commit is contained in:
parent
6160604023
commit
994fa4f1ea
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue