forked from GNUsocial/gnu-social
Merge branch '1.0.x' into testing
This commit is contained in:
commit
fd803ea9ce
@ -272,7 +272,10 @@ class Profile extends Memcached_DataObject
|
|||||||
$groups = array();
|
$groups = array();
|
||||||
|
|
||||||
foreach ($ids as $id) {
|
foreach ($ids as $id) {
|
||||||
$groups[] = User_group::staticGet('id', $id);
|
$group = User_group::staticGet('id', $id);
|
||||||
|
if (!empty($group)) {
|
||||||
|
$groups[] = $group;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return new ArrayWrapper($groups);
|
return new ArrayWrapper($groups);
|
||||||
|
Loading…
Reference in New Issue
Block a user