Browse Source

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

Tyler Akins 24 năm trước cách đây
mục cha
commit
55fa79a156
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      functions/smtp.php

+ 3 - 2
functions/smtp.php

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