aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Data.MySQL/MySQLInventoryData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Data.MySQL/MySQLInventoryData.cs')
-rw-r--r--OpenSim/Framework/Data.MySQL/MySQLInventoryData.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/OpenSim/Framework/Data.MySQL/MySQLInventoryData.cs b/OpenSim/Framework/Data.MySQL/MySQLInventoryData.cs
index 7bd1273..6423f28 100644
--- a/OpenSim/Framework/Data.MySQL/MySQLInventoryData.cs
+++ b/OpenSim/Framework/Data.MySQL/MySQLInventoryData.cs
@@ -225,13 +225,10 @@ namespace OpenSim.Framework.Data.MySQL
225 MySqlDataReader reader = result.ExecuteReader(); 225 MySqlDataReader reader = result.ExecuteReader();
226 226
227 List<InventoryFolderBase> items = new List<InventoryFolderBase>(); 227 List<InventoryFolderBase> items = new List<InventoryFolderBase>();
228 while (reader.Read()) 228 while(reader.Read())
229 items.Add(readInventoryFolder(reader)); 229 items.Add(readInventoryFolder(reader));
230 230
231 InventoryFolderBase rootFolder = null; 231 InventoryFolderBase rootFolder = items[0]; //should only be one folder with parent set to zero (the root one).
232 if (items.Count > 0)
233 rootFolder = items[0]; //should only be one folder with parent set to zero (the root one).
234
235 reader.Close(); 232 reader.Close();
236 result.Dispose(); 233 result.Dispose();
237 234