Better version of previous commit

0.7.5-post-fixes
Diva Canto 2013-07-21 14:39:50 -07:00
parent 5e094bcd46
commit 028947f7b8
1 changed files with 6 additions and 2 deletions

View File

@ -474,9 +474,13 @@ namespace OpenSim.Services.HypergridService
private XInventoryFolder GetCurrentOutfitXFolder(UUID userID)
{
XInventoryFolder root = GetRootXFolder(userID);
if (root == null)
return null;
XInventoryFolder[] folders = m_Database.GetFolders(
new string[] { "agentID", "type" },
new string[] { userID.ToString(), ((int)AssetType.CurrentOutfitFolder).ToString() });
new string[] { "agentID", "type", "parentFolderID" },
new string[] { userID.ToString(), ((int)AssetType.CurrentOutfitFolder).ToString(), root.folderID.ToString() });
if (folders.Length == 0)
return null;