From 40d1e52238d7ccef4d4352a41dfd53593d92e7f0 Mon Sep 17 00:00:00 2001 From: leithoff Date: Tue, 7 Jun 2016 16:07:58 +0200 Subject: [PATCH] fix warning --- api/src/Mail.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/src/Mail.php b/api/src/Mail.php index 8b93b16b5c..24e9a7d9e8 100644 --- a/api/src/Mail.php +++ b/api/src/Mail.php @@ -1298,7 +1298,8 @@ class Mail // we filter for the combined status of unseen and undeleted, as this is what we show in list try { - $sortResult = $this->getSortedList($_folderName, $_sort=0, $_reverse=1, array('status'=>array('UNSEEN','UNDELETED')),$byUid=true,false); + $byUid=true; + $sortResult = $this->getSortedList($_folderName, $_sort=0, $_reverse=1, array('status'=>array('UNSEEN','UNDELETED')),$byUid,false); $retValue['unseen'] = $sortResult['count']; } catch (\Exception $ee) @@ -1815,7 +1816,8 @@ class Mail { if (self::$debugTimes) $starttime = microtime(true); if (is_null($eMailListContainsDeletedMessages) || empty($eMailListContainsDeletedMessages[$this->profileID]) || empty($eMailListContainsDeletedMessages[$this->profileID][$_folderName])) $eMailListContainsDeletedMessages = Cache::getCache(Cache::INSTANCE,'email','eMailListContainsDeletedMessages'.trim($GLOBALS['egw_info']['user']['account_id']),null,array(),60*60*1); - $deletedMessages = $this->getSortedList($_folderName, 0, $three=1, array('status'=>array('DELETED')),$five=true,false); + $five=true; + $deletedMessages = $this->getSortedList($_folderName, 0, $three=1, array('status'=>array('DELETED')),$five,false); if (self::$debug) error_log(__METHOD__.' ('.__LINE__.') Found DeletedMessages:'.array2string($eMailListContainsDeletedMessages)); $eMailListContainsDeletedMessages[$this->profileID][$_folderName] =$deletedMessages['count']; Cache::setCache(Cache::INSTANCE,'email','eMailListContainsDeletedMessages'.trim($GLOBALS['egw_info']['user']['account_id']),$eMailListContainsDeletedMessages, 60*60*1);