Attempt to fix mantis issue # 73

afrisby
MW 2007-12-01 20:57:14 +00:00
parent a274acc7b8
commit 4dee53c7fb
1 changed files with 12 additions and 8 deletions

View File

@ -60,14 +60,18 @@ namespace OpenSim.Framework.Communications.Cache
// Methods // Methods
public InventoryFolderImpl CreateNewSubFolder(LLUUID folderID, string folderName, ushort type) public InventoryFolderImpl CreateNewSubFolder(LLUUID folderID, string folderName, ushort type)
{ {
InventoryFolderImpl subFold = new InventoryFolderImpl(); if (!SubFolders.ContainsKey(folderID))
subFold.name = folderName; {
subFold.folderID = folderID; InventoryFolderImpl subFold = new InventoryFolderImpl();
subFold.type = (short) type; subFold.name = folderName;
subFold.parentID = this.folderID; subFold.folderID = folderID;
subFold.agentID = agentID; subFold.type = (short)type;
SubFolders.Add(subFold.folderID, subFold); subFold.parentID = this.folderID;
return subFold; subFold.agentID = agentID;
SubFolders.Add(subFold.folderID, subFold);
return subFold;
}
return null;
} }
public InventoryItemBase HasItem(LLUUID itemID) public InventoryItemBase HasItem(LLUUID itemID)