summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-11-18 13:58:15 +0000
committeralecpl <alec@alec.pl>2009-11-18 13:58:15 +0000
commitbc04a7ee78544d2b898e0123b19a77850e96737d (patch)
tree4c5f8f9caf436b624b5757b50834bfe47e8f56d4 /program/include
parent90b1cb2efcc764dbcf84521e8c48e4bbeebceace (diff)
- fix creating default folder when moving message and target folder doesn't exists
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_imap.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index 31156e46c..7c8a26243 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -1711,8 +1711,8 @@ class rcube_imap
// make sure mailbox exists
if ($to_mbox != 'INBOX' && !in_array($to_mbox, $this->_list_mailboxes()))
{
- if (in_array($to_mbox_in, $this->default_folders))
- $this->create_mailbox($to_mbox_in, TRUE);
+ if (in_array($tbox, $this->default_folders))
+ $this->create_mailbox($tbox, TRUE);
else
return FALSE;
}