forked from GNUsocial/gnu-social
		
	don't put bogus groups into the groups array
This commit is contained in:
		| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user