Make sure draft folder contains profile id when using it as folder option

This commit is contained in:
Hadi Nategh 2020-07-24 14:38:33 +02:00
parent 7900bfd9cd
commit 56376465f2

View File

@ -3824,7 +3824,11 @@ $filter['before']= date("d-M-Y", $cutoffdate2);
}
}
if (!is_array($content)) $content = array();
if (empty($content['FOLDER'])) $content['FOLDER']=(array)$this->mail_bo->getDraftFolder();
if (empty($content['FOLDER']))
{
$draft = $this->mail_bo->getDraftFolder();
$content['FOLDER']=(array)(preg_match($draft, "/::/") ? $draft : $this->mail_bo->profileID.'::'.$draft);
}
if (!empty($content['FOLDER']))
{
$compose = new mail_compose();