浏览代码

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

Tyler Akins 24 年之前
父节点
当前提交
55fa79a156
共有 1 个文件被更改,包括 3 次插入2 次删除
  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";