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)
{
$session_key = egw_cache::getSession('phpgwapi', 'password');
error_log(__METHOD__."() no session password available!");
if (empty($session_key)) return false;
if (empty($session_key))
{
error_log(__METHOD__."() no session password available!");
return false;
}
$key = base64_decode($session_key);
}
else