Merge branch '1.0.x' into testing

This commit is contained in:
Evan Prodromou 2011-04-05 18:27:23 -04:00
commit fd803ea9ce
1 changed files with 4 additions and 1 deletions

View File

@ -272,7 +272,10 @@ class Profile extends Memcached_DataObject
$groups = array();
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);