fixed more warnings
[squirrelmail.git] / functions / mime.php
index e1dd774d6501f9d867285a4e777d7f73033027b3..ffb9c59a3f7a7543504678cb89ac5d3d956fbd7d 100644 (file)
@@ -27,7 +27,7 @@
       var $type0 = '', $type1 = '', $boundary = '', $charset = '';
       var $encoding = '', $size = 0, $to = '', $from = '', $date = '';
       var $cc = '', $bcc = '', $reply_to = '', $subject = '';
-      var $id = 0, $mailbox = '', $description = '';
+      var $id = 0, $mailbox = '', $description = '', $filename = '';
       var $entity_id = 0, $message_id = 0;
    }
    
           more objects of type message.  See documentation in mime.txt for
           a better description of how this works.
        **/   
-      var $header;
-      var $entities;
+      var $header = '';
+      var $entities = '';
       
       function addEntity ($msg) {
-         $this->entities[count($this->entities)] = $msg;
+         $this->entities[] = $msg;
       }
    }
 
       global $startMessage, $color;
       static $ShownHTML;
       
+         $body = "";
       if ($ShownHTML == 0)
       {
             $ShownHTML = 1;