Closed (fixed)
Project:
Examples for Developers
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Dec 2009 at 16:50 UTC
Updated:
29 Dec 2009 at 01:40 UTC
Jump to comment: Most recent file
Even though it's incorrect, many modules do not create the body as an array.
Thus the hook_mail_alter() code that says
$message['body'][] = ".... signature added";
produces a fatal error.
This patch makes the code a bit more generous.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | examples.body_as_string_653504_02.patch | 895 bytes | rfay |
| examples.body_as_string.patch | 892 bytes | rfay |
Comments
Comment #1
dave reidJust make sure to use the proper coding standard with if/else. :)
Comment #2
rfayOops. Thanks, @davereid. Here's the replacement.
Note that this fix should be made in D7 as well.
Comment #3
ilo commentedReviewed, patched, tested, and committed to DRUPAL-6--1. Thank you all!
Comment #4
ilo commentedand committed also for D7