From 19f3f68decca00ab72e7b87fcdc28b07a61175da Mon Sep 17 00:00:00 2001 From: nathangray Date: Mon, 16 Jan 2017 13:02:19 -0700 Subject: [PATCH] Avoid error caused by calling member method statically --- mail/inc/class.mail_ui.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mail/inc/class.mail_ui.inc.php b/mail/inc/class.mail_ui.inc.php index 059bd3b378..1798f65d9c 100644 --- a/mail/inc/class.mail_ui.inc.php +++ b/mail/inc/class.mail_ui.inc.php @@ -3317,7 +3317,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'])) $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->setElementAttribute('uploadForImport','onFinish','app.mail.uploadForImport');