Closed (fixed)
Project:
Notifications
Version:
5.x-5.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
6 May 2008 at 19:09 UTC
Updated:
22 May 2008 at 15:24 UTC
if ($conditions) {
$index = 0;
foreach ($conditions as $field => $value) {
$alias = 'nf'. $index;
$join[] = "INNER JOIN {notifications_fields} $alias ON n.sid = $alias.sid";
$where[] = "$alias.field = '%s'";
$where[] = "$alias.value = '%s'";
$args[] = $field;
$args[] = $value;
}
}The variable $index is never incremented thereby leading to duplicate aliases. Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| notifications_unsub.patch | 716 bytes | Zen |
Comments
Comment #1
jose reyero commentedCommitted (d5 and d6 branches), thanks
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.