Index: branches/5.1.x/core/units/helpers/email_message_helper.php =================================================================== diff -u -r13140 -r13151 --- branches/5.1.x/core/units/helpers/email_message_helper.php (.../email_message_helper.php) (revision 13140) +++ branches/5.1.x/core/units/helpers/email_message_helper.php (.../email_message_helper.php) (revision 13151) @@ -10,7 +10,7 @@ */ function parseTemplate($text) { - $ret = Array (); + $ret = Array ('Subject' => '', 'Headers' => '', 'Body' => ''); $headers = Array(); $lines = explode("\n", $text); @@ -31,7 +31,7 @@ $ret['Headers'] = implode("\n", $headers); $message_body = ''; - while ((list($line_id,$line) = each($lines))) { + while ((list($line_id, $line) = each($lines))) { $message_body .= $line; }