aboutsummaryrefslogtreecommitdiffstats
path: root/include/group.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-05 14:26:31 -0800
committerfriendica <info@friendica.com>2013-11-05 14:26:31 -0800
commit5b48ab772b24102a72945fe3a4f141f8380dcf86 (patch)
tree2583c643d5afd61f4d825d69b602dc8a577a8249 /include/group.php
parent727e8cc2989d47bfd8ef5fcadc62b1473a323a10 (diff)
downloadvolse-hubzilla-5b48ab772b24102a72945fe3a4f141f8380dcf86.tar.gz
volse-hubzilla-5b48ab772b24102a72945fe3a4f141f8380dcf86.tar.bz2
volse-hubzilla-5b48ab772b24102a72945fe3a4f141f8380dcf86.zip
fix private group delivery
Diffstat (limited to 'include/group.php')
-rw-r--r--include/group.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/group.php b/include/group.php
index 7ba14a49d..eece07983 100644
--- a/include/group.php
+++ b/include/group.php
@@ -298,12 +298,13 @@ function expand_groups($a) {
if(! (is_array($a) && count($a)))
return array();
$x = $a;
- stringify_array_elms($x);
+ stringify_array_elms($x,true);
$groups = implode(',', $x);
- $groups = dbesc($groups);
+
if($groups)
- $r = q("SELECT xchan FROM group_member WHERE gid IN ( $groups )");
+ $r = q("SELECT xchan FROM group_member WHERE gid IN ( select id from `group` where hash in ( $groups ))");
$ret = array();
+
if($r)
foreach($r as $rr)
$ret[] = $rr['xchan'];