Explorar o código

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

Tyler Akins %!s(int64=24) %!d(string=hai) anos
pai
achega
55fa79a156
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  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";