Mantis #7594. Fixing the broken code I just introduced.

fsassets
Diva Canto 2015-06-01 18:57:01 -07:00
parent 7b5e97f04f
commit 442c025335
1 changed files with 4 additions and 1 deletions

View File

@ -111,7 +111,10 @@ namespace OpenSim.Capabilities.Handlers
} }
// Filter duplicate folder ids that bad viewers may send // Filter duplicate folder ids that bad viewers may send
folders = (List<LLSDFetchInventoryDescendents>)folders.GroupBy(f => f.folder_id).Select(n => n.First()); var unique = folders.GroupBy(f => f.folder_id).Select(n => n.First());
folders.Clear();
foreach (var f in unique)
folders.Add(f);
} }
if (folders.Count > 0) if (folders.Count > 0)