From bc459e072fb2fc5178f0eb83335c3dc141ad2cfc Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 22 Aug 2014 13:05:56 +0000 Subject: [PATCH] Backport commit r48031, committed by Klaus Leithoff. Adapt capabilities call for horde_IMAP_Client 2.24.1+ --- emailadmin/inc/class.emailadmin_imapbase.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emailadmin/inc/class.emailadmin_imapbase.inc.php b/emailadmin/inc/class.emailadmin_imapbase.inc.php index 728994edfa..b4dce65237 100644 --- a/emailadmin/inc/class.emailadmin_imapbase.inc.php +++ b/emailadmin/inc/class.emailadmin_imapbase.inc.php @@ -477,7 +477,7 @@ class emailadmin_imapbase static function unsetCachedObjects($_profileID=null) { if (is_null($_profileID)) $_profileID = emailadmin_account::get_default_acc_id(); - $account_id = $_profileID['account_id']; + if (is_array($_profileID) && $_profileID['account_id']) $account_id = $_profileID['account_id']; //error_log(__METHOD__.__LINE__.' called with ProfileID:'.array2string($_profileID).' from '.function_backtrace()); if (!is_array($_profileID) && (is_numeric($_profileID) || !(stripos($_profileID,'tracker_')===false))) {