Reinstating fix for the "to" addresses. Hopefully won't need them for CC
[squirrelmail.git] / functions / mime.php
index 578337352eb349ab0a914937d2e2a52d72436347..d299d3ee0799e22a353c92005f962f53c5d27b75 100644 (file)
@@ -25,8 +25,8 @@
       /** could be in a header.                                 **/
       
       var $type0 = '', $type1 = '', $boundary = '', $charset = '';
-      var $encoding = '', $size = 0, $to = '', $from = '', $date = '';
-      var $cc = '', $bcc = '', $reply_to = '', $subject = '';
+      var $encoding = '', $size = 0, $to = array(), $from = '', $date = '';
+      var $cc = array(), $bcc = array(), $reply_to = '', $subject = '';
       var $id = 0, $mailbox = '', $description = '', $filename = '';
       var $entity_id = 0, $message_id = 0;
    }
@@ -38,7 +38,7 @@
           a better description of how this works.
        **/   
       var $header = '';
-      var $entities = '';
+      var $entities = array();
       
       function addEntity ($msg) {
          $this->entities[] = $msg;