From 64006d366a2b2348f176ed8a1af63de343fc1aab Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 28 Jan 2016 11:24:24 +0000 Subject: [PATCH] fix typo from previous r54863 --- mail/inc/class.mail_sieve.inc.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mail/inc/class.mail_sieve.inc.php b/mail/inc/class.mail_sieve.inc.php index 6c9763053b..165e1802aa 100644 --- a/mail/inc/class.mail_sieve.inc.php +++ b/mail/inc/class.mail_sieve.inc.php @@ -636,13 +636,15 @@ class mail_sieve //Reset vacationNotice cache which is used in mail_ui get_rows if (isset($account_id) && $this->mail_admin) { - $accont_lid = accounts::id2name($account_id,'account_lid'); - $cachedVacations = array($icServer->acc_id => $newVacation) + (array)egw_cache::getCache(egw_cache::INSTANCE, 'email', 'vacationNotice'.$accont_lid); - egw_cache::setCache(egw_cache::INSTANCE,'email', 'vacationNotice'.$accont_lid, $cachedVacations); + $account_lid = accounts::id2name($account_id,'account_lid'); + $cachedVacations = array($icServer->acc_id => $newVacation) + (array)egw_cache::getCache(egw_cache::INSTANCE, 'email', 'vacationNotice'.$account_lid); + //error_log(__METHOD__.__LINE__.' Setting Cache for '.$account_lid.':'.array2string($cachedVacations)); + egw_cache::setCache(egw_cache::INSTANCE,'email', 'vacationNotice'.$account_lid, $cachedVacations); } else { $cachedVacations = array($icServer->acc_id => $newVacation) + (array)egw_cache::getCache(egw_cache::INSTANCE, 'email', 'vacationNotice'.$GLOBALS['egw_info']['user']['account_lid']); + //error_log(__METHOD__.__LINE__.' Setting Cache for own ('.$GLOBALS['egw_info']['user']['account_lid'].'):'.array2string($cachedVacations)); egw_cache::setCache(egw_cache::INSTANCE,'email', 'vacationNotice'.$GLOBALS['egw_info']['user']['account_lid'], $cachedVacations); } $msg = lang('Vacation notice sucessfully updated.');