Commit f5c76c85 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Quote reserved name in query

parent a0424281
......@@ -65,9 +65,9 @@ function group_remove_user($group, $userid) {
db_begin();
delete_records('group_member', 'group', $group, 'member', $userid);
delete_records_sql(
'DELETE FROM {view_access_group} a
WHERE a.group = ?
AND a.view IN (
'DELETE FROM {view_access_group}
WHERE "group" = ?
AND view IN (
SELECT v.id
FROM {view} v
WHERE v.owner = ?
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment