Browse Source

* Fixed warnings from popping up (even though they were originally there
by a mistake)

Tyler Akins 24 years ago
parent
commit
55fa79a156
1 changed files with 3 additions and 2 deletions
  1. 3 2
      functions/smtp.php

+ 3 - 2
functions/smtp.php

@@ -64,8 +64,9 @@
       if (isMultipart()) {
       if (isMultipart()) {
          foreach ($attachments as $info)
          foreach ($attachments as $info)
 	 {
 	 {
-	    $filetype = $info['type'];
-            if ($filetype == '')
+	    if (isset($info['type']))
+ 	       $filetype = $info['type'];
+            else
                $filetype = 'application/octet-stream';
                $filetype = 'application/octet-stream';
             
             
             $header = '--'.mimeBoundary()."\r\n";
             $header = '--'.mimeBoundary()."\r\n";