fix private group delivery
This commit is contained in:
parent
727e8cc298
commit
5b48ab772b
@ -298,12 +298,13 @@ function expand_groups($a) {
|
|||||||
if(! (is_array($a) && count($a)))
|
if(! (is_array($a) && count($a)))
|
||||||
return array();
|
return array();
|
||||||
$x = $a;
|
$x = $a;
|
||||||
stringify_array_elms($x);
|
stringify_array_elms($x,true);
|
||||||
$groups = implode(',', $x);
|
$groups = implode(',', $x);
|
||||||
$groups = dbesc($groups);
|
|
||||||
if($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();
|
$ret = array();
|
||||||
|
|
||||||
if($r)
|
if($r)
|
||||||
foreach($r as $rr)
|
foreach($r as $rr)
|
||||||
$ret[] = $rr['xchan'];
|
$ret[] = $rr['xchan'];
|
||||||
|
@ -1 +1 @@
|
|||||||
2013-11-04.487
|
2013-11-05.488
|
||||||
|
Reference in New Issue
Block a user