Explorar o código

must initialise MessageHeader object to avoid
PHP Warning: Creating default object from empty value

Thijs Kinkhorst %!s(int64=13) %!d(string=hai) anos
pai
achega
43c72ec195
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      class/mime/Message.class.php

+ 1 - 0
class/mime/Message.class.php

@@ -364,6 +364,7 @@ class Message {
                                 $hdr->type1 = 'plain';
                                 $hdr->encoding = '7bit';
                             } else {
+                                $msg->header = new MessageHeader();
                                 $msg->header->type0 = 'multipart';
                                 $msg->type0 = 'multipart';
                                 while ($read{$i} == '(') {