* Fixed warnings from popping up (even though they were originally there
[squirrelmail.git] / functions / smtp.php
index 0c66f44e96779aecea0d956e03ef2925b49ed5d9..09a1a7e4a1e0c311d9fb79256d6edbbed9f28f12 100644 (file)
@@ -64,8 +64,9 @@
       if (isMultipart()) {
          foreach ($attachments as $info)
         {
-           $filetype = $info['type'];
-            if ($filetype == '')
+           if (isset($info['type']))
+              $filetype = $info['type'];
+            else
                $filetype = 'application/octet-stream';
             
             $header = '--'.mimeBoundary()."\r\n";