aboutsummaryrefslogtreecommitdiffstats
path: root/mod/lockview.php
diff options
context:
space:
mode:
authorZach Prezkuta <fermion@gmx.com>2013-05-12 09:40:54 -0600
committerZach Prezkuta <fermion@gmx.com>2013-05-12 09:40:54 -0600
commit24d088d43be7cc03a0975360d7542b578c48369f (patch)
tree9b07c3b53abfec221edabdbde9d88a6c8536300d /mod/lockview.php
parent8a1c8c4a03899c844885da58f9184fc10e7d6b07 (diff)
downloadvolse-hubzilla-24d088d43be7cc03a0975360d7542b578c48369f.tar.gz
volse-hubzilla-24d088d43be7cc03a0975360d7542b578c48369f.tar.bz2
volse-hubzilla-24d088d43be7cc03a0975360d7542b578c48369f.zip
mysql 5.1 chokes on 'select * from group' since group is a keyword
Diffstat (limited to 'mod/lockview.php')
-rw-r--r--mod/lockview.php4
1 files changed, 2 insertions, 2 deletions
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[] = '<b>' . $rr['name'] . '</b>';
@@ -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[] = '<b><strike>' . $rr['name'] . '</strike></b>';