aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs b/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs
index fdbe1f4..0c83b26 100644
--- a/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs
+++ b/OpenSim/Capabilities/Handlers/FetchInventory/FetchInvDescHandler.cs
@@ -111,7 +111,10 @@ namespace OpenSim.Capabilities.Handlers
111 } 111 }
112 112
113 // Filter duplicate folder ids that bad viewers may send 113 // Filter duplicate folder ids that bad viewers may send
114 folders = (List<LLSDFetchInventoryDescendents>)folders.GroupBy(f => f.folder_id).Select(n => n.First()); 114 var unique = folders.GroupBy(f => f.folder_id).Select(n => n.First());
115 folders.Clear();
116 foreach (var f in unique)
117 folders.Add(f);
115 } 118 }
116 119
117 if (folders.Count > 0) 120 if (folders.Count > 0)