handle error on empty folder while checking when saving as draft

This commit is contained in:
Klaus Leithoff 2013-01-30 09:17:19 +00:00
parent ab4dc564cb
commit 044263bd8c

View File

@ -967,8 +967,8 @@
{ {
$this->sessionData['messageFolder'] = $this->sessionData['mailbox']; $this->sessionData['messageFolder'] = $this->sessionData['mailbox'];
} }
if ($bofelamimail->isDraftFolder($this->sessionData['messageFolder']) if (!empty($this->sessionData['messageFolder']) && ($bofelamimail->isDraftFolder($this->sessionData['messageFolder'])
|| $bofelamimail->isTemplateFolder($this->sessionData['messageFolder'])) || $bofelamimail->isTemplateFolder($this->sessionData['messageFolder'])))
{ {
$savingDestination = $this->sessionData['messageFolder']; $savingDestination = $this->sessionData['messageFolder'];
//error_log(__METHOD__.__LINE__.' SavingDestination:'.$savingDestination); //error_log(__METHOD__.__LINE__.' SavingDestination:'.$savingDestination);