added more bugfixes and warning squashes
[squirrelmail.git] / src / compose.php
index 841d0c007e007c7ed3f0c5cc3b0e2832e971b92d..3a37f54f958a10e2f2958ebd1efb589e1c6846d6 100644 (file)
          }
       }
       
-      if (!$failed) {
+      if (!isset($failed) || !$failed) {
          // Write information about the file
          $fp = fopen ($attachment_dir.$localfilename.".info", "w");
          fputs ($fp, $HTTP_POST_FILES['attachfile']['type']."\n".$HTTP_POST_FILES['attachfile']['name']."\n");
       }
     }
 
-   if (($mailbox == "") || ($mailbox == "None"))
+   if (!isset($mailbox) || $mailbox == "" || ($mailbox == "None"))
       $mailbox = "INBOX";
 
    if(isset($send)) {