Backport commit r48040, committed by Nathan Gray. Some more speed improvements for get_rows:

- Don't verify that special folders exist
This commit is contained in:
Hadi Nategh 2014-08-14 07:34:40 +00:00
parent 80ecc08133
commit 6b44e369f2

View File

@ -1478,7 +1478,7 @@ class mail_ui
$toSchema = false;//decides to select list schema with column to selected (if false fromaddress is default) $toSchema = false;//decides to select list schema with column to selected (if false fromaddress is default)
if ($this->mail_bo->folderExists($_folderName)) if ($this->mail_bo->folderExists($_folderName))
{ {
$toSchema = $this->mail_bo->isDraftFolder($_folderName)||$this->mail_bo->isSentFolder($_folderName)||$this->mail_bo->isTemplateFolder($_folderName); $toSchema = $this->mail_bo->isDraftFolder($_folderName,false)||$this->mail_bo->isSentFolder($_folderName,false)||$this->mail_bo->isTemplateFolder($_folderName,false);
} }
else else
{ {