From: kink Date: Sat, 24 Mar 2012 10:27:57 +0000 (+0000) Subject: must initialise MessageHeader object to avoid X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=aa6e3b11520522101c7650032837286fe807bb73;p=squirrelmail.git must initialise MessageHeader object to avoid 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 --- diff --git a/class/mime/Message.class.php b/class/mime/Message.class.php index 4c6e0481..b4ec0bc3 100644 --- a/class/mime/Message.class.php +++ b/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} == '(') {