Avoid error caused by calling member method statically

This commit is contained in:
nathangray 2017-01-16 13:02:19 -07:00
parent a66b34c8fc
commit 2352640ad7

View File

@ -3318,7 +3318,11 @@ $filter['before']= date("d-M-Y", $cutoffdate2);
} }
if (!is_array($content)) $content = array(); if (!is_array($content)) $content = array();
if (empty($content['FOLDER'])) $content['FOLDER']=(array)$this->mail_bo->getDraftFolder(); if (empty($content['FOLDER'])) $content['FOLDER']=(array)$this->mail_bo->getDraftFolder();
if (!empty($content['FOLDER'])) $sel_options['FOLDER']=mail_compose::ajax_searchFolder(0,true); if (!empty($content['FOLDER']))
{
$compose = new mail_compose();
$sel_options['FOLDER'] = $compose->ajax_searchFolder(0,true);
}
$etpl = new Etemplate('mail.importMessage'); $etpl = new Etemplate('mail.importMessage');
$etpl->setElementAttribute('uploadForImport','onFinish','app.mail.uploadForImport'); $etpl->setElementAttribute('uploadForImport','onFinish','app.mail.uploadForImport');