After attaching an image to a Story, while displaying a listing created with Views2 I got this message. Workaround attached.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joachim’s picture

Version: 6.x-1.0-beta3 » 6.x-1.x-dev
Status: Active » Needs review
FileSize
1.77 KB

Is that with E_ALL?
Grr why can't PHP by a bit more laid back about these things? :(

Thanks for taking the time to roll a patch.
However, since $output is only set once (just in 3 different places depending on your flow), I prefer a visually cleaner fix -- actually set it rather than append to it. (I just tend to append when coding to avoid data clobbering bugs if I rearrange stuff...)

Could you test the attached please and confirm it also fixes your bug?
I can then commit it :)

unjello’s picture

ay, that does the trick too... and i agree it looks better. i just went for whatever removed the warning in fastest way :]

joachim’s picture

Status: Needs review » Fixed

Committed to CVS.
Thanks for reporting and making a patch!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.