Fix undefined index
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 8 Jun 2009 18:58:54 +0000 (12:58 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 8 Jun 2009 21:28:32 +0000 (15:28 -0600)
imp/compose-dimp.php

index 34c37d0..dac1f30 100644 (file)
@@ -141,6 +141,8 @@ if (count($_POST)) {
         $html = Util::getFormData('html');
 
         $result->index = intval(Util::getFormData('index'));
+
+        $reply_folder = Util::getFormData('folder');
         if ($reply_type = Util::getFormData('reply_type')) {
             $result->reply_folder = Util::getFormData('folder');
             $result->reply_type = $reply_type;
@@ -153,7 +155,7 @@ if (count($_POST)) {
 
         $options = array(
             'readreceipt' => Util::getFormData('request_read_receipt'),
-            'reply_index' => $result->index . IMP::IDX_SEP . $result->reply_folder,
+            'reply_index' => $result->index . IMP::IDX_SEP . $reply_folder,
             'reply_type' => $reply_type,
             'save_attachments' => Util::getFormData('save_attachments_select'),
             'save_sent' => (($prefs->isLocked('save_sent_mail'))