From 24d088d43be7cc03a0975360d7542b578c48369f Mon Sep 17 00:00:00 2001 From: Zach Prezkuta Date: Sun, 12 May 2013 09:40:54 -0600 Subject: mysql 5.1 chokes on 'select * from group' since group is a keyword --- mod/lockview.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/lockview.php') diff --git a/mod/lockview.php b/mod/lockview.php index 01a6997ee..7dda85623 100644 --- a/mod/lockview.php +++ b/mod/lockview.php @@ -49,7 +49,7 @@ function lockview_content(&$a) { stringify_array_elms($deny_users,true); if(count($allowed_groups)) { - $r = q("SELECT name FROM group WHERE hash IN ( " . implode(', ', $allowed_groups) . " )"); + $r = q("SELECT name FROM `group` WHERE hash IN ( " . implode(', ', $allowed_groups) . " )"); if($r) foreach($r as $rr) $l[] = '' . $rr['name'] . ''; @@ -61,7 +61,7 @@ function lockview_content(&$a) { $l[] = $rr['xchan_name']; } if(count($deny_groups)) { - $r = q("SELECT name FROM group WHERE hash IN ( " . implode(', ', $deny_groups) . " )"); + $r = q("SELECT name FROM `group` WHERE hash IN ( " . implode(', ', $deny_groups) . " )"); if($r) foreach($r as $rr) $l[] = '' . $rr['name'] . ''; -- cgit v1.2.3