notice: Undefined variable: output in image_attach_views_handler_field_attached_images.inc

unjello - November 1, 2009 - 14:47
Project:Image
Version:6.x-1.x-dev
Component:image_attach
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

AttachmentSize
image_attach_views_handler_field_attached_images.patch524 bytes

#1

joachim - November 2, 2009 - 09:34
Version:6.x-1.0-beta3» 6.x-1.x-dev
Status:active» needs review

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 :)

AttachmentSize
620234.image_attach.handler-output.patch 1.77 KB

#2

unjello - November 6, 2009 - 16:12

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

#3

joachim - November 6, 2009 - 17:06
Status:needs review» fixed

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

#4

System Message - November 20, 2009 - 17:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.