Closed (fixed)
Project:
Image
Version:
4.7.x-1.x-dev
Component:
image.module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
26 Feb 2006 at 05:26 UTC
Updated:
26 Feb 2008 at 08:42 UTC
Jump to comment: Most recent file
The last line of the image_page function calls node_load on $last->nid, without checking whether or not $last->nid actually exists. When there aren't any images in the gallery, that results in a node_load of the empty string. In MySQL, this gets silently converted to 0, but in PostgreSQL, you get a bright red syntax error.
This patch adds a check to make sure that $last->nid is set before loading it.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | image_gallery.module.patch | 1.32 KB | Steve Simms |
| image.module_15.patch | 1004 bytes | Steve Simms |
Comments
Comment #1
Steve Simms commentedThis is still a problem as of 4.7.2. I've updated the patch to work in the current CVS.
Any chance that someone could commit it, please?
Comment #2
Hetta commentedFrom 2006 - it's a 4.7 problem. Please reopen if this is still a problem.
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.