must initialise MessageHeader object to avoid
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 24 Mar 2012 10:27:57 +0000 (10:27 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 24 Mar 2012 10:27:57 +0000 (10:27 +0000)
PHP Warning:  Creating default object from empty value

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14289 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/mime/Message.class.php

index 4c6e0481f4d55a4785b1b6fbbbe5ace9122b1d1a..b4ec0bc3335075bcb11dc28290b3117e7c736965 100644 (file)
@@ -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} == '(') {