Posted by Nimish P on April 28, 2006 at 6:20pm
| Project: | Flexinode |
| Version: | 4.6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
field_usergroup.inc contrib module generates invalid query when the where clause is empty.
A check needs to be added to see if the where clause is empty, if so, "WHERE" it should not be appended to the query.
Comments
#1
Here is a patch that works for 4.6.0 version of flexinode.
#2
It seems this is also a problem in HEAD, is that correct?
Also, please do not add a ?> at the end. In Drupal we never add that ?> closing PHP tag!
Can someone please test this patch? It looks good, but I want it to be tested in a 4.6 environment with real data please.