diff options
Diffstat (limited to 'include/security.php')
-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 88988a7c0..493d34699 100644 --- a/include/security.php +++ b/include/security.php @@ -370,7 +370,7 @@ function permissions_sql($owner_id, $remote_observer = null, $table = '') { } /** - * @brief Creates an addiontal SQL where statement to check permissions for an item. + * @brief Creates an additional SQL where statement to check permissions for an item. * * @param int $owner_id * @param bool $remote_observer (optional) use current observer if unset @@ -577,7 +577,7 @@ function init_groups_visitor($contact_id) { // physical groups this channel is a member of - $r = q("SELECT hash FROM groups left join group_member on groups.id = group_member.gid WHERE xchan = '%s' ", + $r = q("SELECT hash FROM pgrp left join pgrp_member on pgrp.id = pgrp_member.gid WHERE xchan = '%s' ", dbesc($contact_id) ); if($r) { |