* Fixed warnings from popping up (even though they were originally there
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 10 Apr 2001 14:36:03 +0000 (14:36 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 10 Apr 2001 14:36:03 +0000 (14:36 +0000)
  by a mistake)

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1218 7612ce4b-ef26-0410-bec9-ea0150e637f0

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";