X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fgroup.php;h=aa226688ae5242dae6220b0a00062acef44911ce;hb=f663676cca64639202a76b599a1932c9de45f6fa;hp=7ede242c087073b326a1d5de296d398d806cf00f;hpb=234598280d96627861a1ff1dcfc8a4a59bd37054;p=friendica.git diff --git a/include/group.php b/include/group.php index 7ede242c08..aa226688ae 100644 --- a/include/group.php +++ b/include/group.php @@ -279,7 +279,7 @@ function group_side($every="contacts",$each="group",$edit = false, $group_id = 0 return $o; } -function expand_groups($a) { +function expand_groups($a,$check_dead = false) { if(! (is_array($a) && count($a))) return array(); $groups = implode(',', $a); @@ -289,6 +289,10 @@ function expand_groups($a) { if(count($r)) foreach($r as $rr) $ret[] = $rr['contact-id']; + if($check_dead) { + require_once('include/acl_selectors.php'); + $ret = prune_deadguys($ret); + } return $ret; }