Mercurial > hg > fapweb
changeset 647:60b51ab059da
Oops, forgot an AND from one SQL clause.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 03 Nov 2014 03:17:17 +0200 |
parents | 2eeca16e9c96 |
children | 9e4b8df65879 |
files | msite.inc.php |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/msite.inc.php Mon Nov 03 03:13:40 2014 +0200 +++ b/msite.inc.php Mon Nov 03 03:17:17 2014 +0200 @@ -337,7 +337,7 @@ { if ($id !== false) // By another ID, if we are updating an entry - $sql = stPrepareSQL("SELECT * FROM attendees WHERE id<>%d name=%s AND groups=%s", $id, $name, $groups); + $sql = stPrepareSQL("SELECT * FROM attendees WHERE id<>%d AND name=%s AND groups=%s", $id, $name, $groups); else // Or just exists, if adding $sql = stPrepareSQL("SELECT * FROM attendees WHERE name=%s AND groups=%s", $name, $groups);