diff options
author | friendica <info@friendica.com> | 2013-05-28 16:32:31 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-05-28 16:32:31 -0700 |
commit | 281d73b03adb4906acd9483911aa8edb04e68f6b (patch) | |
tree | 0264aac10b9288ef38beeca0a02ef952cfe718bc /include | |
parent | 08a4ffd6633896a75f1aa66c7c310fc6fd991912 (diff) | |
download | volse-hubzilla-281d73b03adb4906acd9483911aa8edb04e68f6b.tar.gz volse-hubzilla-281d73b03adb4906acd9483911aa8edb04e68f6b.tar.bz2 volse-hubzilla-281d73b03adb4906acd9483911aa8edb04e68f6b.zip |
issue #55 (number 2)
Diffstat (limited to 'include')
-rw-r--r-- | include/group.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/group.php b/include/group.php index 1a3ed669f..ff17a726c 100644 --- a/include/group.php +++ b/include/group.php @@ -296,12 +296,14 @@ 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); + $x = $a; + stringify_array_elms($x); + $groups = implode(',', $x); $groups = dbesc($groups); - $r = q("SELECT xchan FROM `group_member` WHERE `gid` IN ( $groups )"); + if($groups) + $r = q("SELECT xchan FROM group_member WHERE gid IN ( $groups )"); $ret = array(); - if(count($r)) + if($r) foreach($r as $rr) $ret[] = $rr['xchan']; return $ret; |