diff options
author | marijus <mario@localhost.localdomain> | 2013-11-22 21:18:16 +0100 |
---|---|---|
committer | marijus <mario@localhost.localdomain> | 2013-11-22 21:18:16 +0100 |
commit | 28071c7f6a455fd70ad1ebad103c5780657a8583 (patch) | |
tree | a9edd91be76b976bb7b6a7103297dacf7209017f /include | |
parent | 3a4c32475e33e1cad6610c8e4fa0e9cc18bbc31a (diff) | |
parent | 34f8b215114f1041094784c9f931d185b78b0ec2 (diff) | |
download | volse-hubzilla-28071c7f6a455fd70ad1ebad103c5780657a8583.tar.gz volse-hubzilla-28071c7f6a455fd70ad1ebad103c5780657a8583.tar.bz2 volse-hubzilla-28071c7f6a455fd70ad1ebad103c5780657a8583.zip |
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'include')
-rw-r--r-- | include/security.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/security.php b/include/security.php index 1181e6bf2..296fa450f 100644 --- a/include/security.php +++ b/include/security.php @@ -386,12 +386,12 @@ function check_form_security_token_ForbiddenOnErr($typename = '', $formname = 'f if(! function_exists('init_groups_visitor')) { function init_groups_visitor($contact_id) { $groups = array(); - $r = q("SELECT gid FROM group_member WHERE xchan = '%s' ", + $r = q("SELECT hash FROM `group` left join group_member on group.id = group_member.gid WHERE xchan = '%s' ", dbesc($contact_id) ); if(count($r)) { foreach($r as $rr) - $groups[] = $rr['gid']; + $groups[] = $rr['hash']; } return $groups; }} |