fix error_log "no session password available" to only show, if no session password is available

This commit is contained in:
Ralf Becker 2014-09-02 10:45:54 +00:00
parent 8b06beed25
commit 78581a3eb4

View File

@ -412,8 +412,11 @@ class emailadmin_credentials
elseif ($user) elseif ($user)
{ {
$session_key = egw_cache::getSession('phpgwapi', 'password'); $session_key = egw_cache::getSession('phpgwapi', 'password');
error_log(__METHOD__."() no session password available!"); if (empty($session_key))
if (empty($session_key)) return false; {
error_log(__METHOD__."() no session password available!");
return false;
}
$key = base64_decode($session_key); $key = base64_decode($session_key);
} }
else else