silence warning when a location=>verify_settings is passed to resetFolderObjectCache

This commit is contained in:
Klaus Leithoff 2014-11-11 14:46:29 +00:00
parent f73d84dd90
commit 9eecbed4d5

View File

@ -578,9 +578,11 @@ class emailadmin_imapbase
*/
static function resetFolderObjectCache($_ImapServerId=null,$account_id=null)
{
//error_log(__METHOD__.' ('.__LINE__.') '.' called for Profile:'.$_ImapServerId.'->'.function_backtrace());
//error_log(__METHOD__.' ('.__LINE__.') '.' called for Profile:'.array2string($_ImapServerId).'->'.function_backtrace());
if (is_null($account_id)) $account_id = $GLOBALS['egw_info']['user']['account_id'];
if (is_null($_ImapServerId))
// on [location] => verify_settings we coud either use [prefs] => Array([ActiveProfileID] => 9, .. as $_ImapServerId
// or treat it as not given. we try that path
if (is_null($_ImapServerId)||is_array($_ImapServerId))
{
$folders2return = array();
$folderInfo = array();