From 78581a3eb4c0cf626660b14ecd5afa5c5433732c Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 2 Sep 2014 10:45:54 +0000 Subject: [PATCH] fix error_log "no session password available" to only show, if no session password is available --- emailadmin/inc/class.emailadmin_credentials.inc.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/emailadmin/inc/class.emailadmin_credentials.inc.php b/emailadmin/inc/class.emailadmin_credentials.inc.php index 91b64d7b58..5c3661836e 100644 --- a/emailadmin/inc/class.emailadmin_credentials.inc.php +++ b/emailadmin/inc/class.emailadmin_credentials.inc.php @@ -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