From acbf822bbdbf268d86fada7028ef9a73adef9879 Mon Sep 17 00:00:00 2001 From: Olaf Conradi Date: Tue, 25 Dec 2012 16:01:32 +0100 Subject: Stringify groups before imploding --- include/group.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/group.php') diff --git a/include/group.php b/include/group.php index fdcdc4416..6568af0c7 100644 --- a/include/group.php +++ b/include/group.php @@ -280,10 +280,9 @@ function group_side($every="contacts",$each="group",$edit = false, $group_id = 0 function expand_groups($a) { if(! (is_array($a) && count($a))) return array(); + stringify_array_elms($groups); $groups = implode(',', $a); - $groups = dbesc($groups); - stringify_array_elms($groups); $r = q("SELECT xchan FROM `group_member` WHERE `gid` IN ( $groups )"); $ret = array(); if(count($r)) -- cgit v1.2.3