aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Addons/Groups
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Addons/Groups')
-rw-r--r--OpenSim/Addons/Groups/Service/GroupsService.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim/Addons/Groups/Service/GroupsService.cs b/OpenSim/Addons/Groups/Service/GroupsService.cs
index 0792a47..b5f8ff5 100644
--- a/OpenSim/Addons/Groups/Service/GroupsService.cs
+++ b/OpenSim/Addons/Groups/Service/GroupsService.cs
@@ -230,15 +230,22 @@ namespace OpenSim.Groups
230 if (d.Data.ContainsKey("Location") && d.Data["Location"] != string.Empty) 230 if (d.Data.ContainsKey("Location") && d.Data["Location"] != string.Empty)
231 continue; 231 continue;
232 232
233 int nmembers = m_Database.MemberCount(d.GroupID);
234 if(nmembers == 0)
235 continue;
236
233 DirGroupsReplyData g = new DirGroupsReplyData(); 237 DirGroupsReplyData g = new DirGroupsReplyData();
234 g.groupID = d.GroupID;
235 238
236 if (d.Data.ContainsKey("Name")) 239 if (d.Data.ContainsKey("Name"))
237 g.groupName = d.Data["Name"]; 240 g.groupName = d.Data["Name"];
238 else 241 else
242 {
239 m_log.DebugFormat("[Groups]: Key Name not found"); 243 m_log.DebugFormat("[Groups]: Key Name not found");
244 continue;
245 }
240 246
241 g.members = m_Database.MemberCount(d.GroupID); 247 g.groupID = d.GroupID;
248 g.members = nmembers;
242 249
243 groups.Add(g); 250 groups.Add(g);
244 } 251 }