Backport commit r48031, committed by Klaus Leithoff. Adapt capabilities call for horde_IMAP_Client 2.24.1+

This commit is contained in:
Hadi Nategh 2014-08-22 13:05:56 +00:00
parent e7edc079ab
commit bc459e072f

View File

@ -477,7 +477,7 @@ class emailadmin_imapbase
static function unsetCachedObjects($_profileID=null) static function unsetCachedObjects($_profileID=null)
{ {
if (is_null($_profileID)) $_profileID = emailadmin_account::get_default_acc_id(); 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()); //error_log(__METHOD__.__LINE__.' called with ProfileID:'.array2string($_profileID).' from '.function_backtrace());
if (!is_array($_profileID) && (is_numeric($_profileID) || !(stripos($_profileID,'tracker_')===false))) if (!is_array($_profileID) && (is_numeric($_profileID) || !(stripos($_profileID,'tracker_')===false)))
{ {