diff options
Diffstat (limited to 'OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs')
-rw-r--r-- | OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs b/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs index 7d9cf75..eb0ba04 100644 --- a/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs +++ b/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs | |||
@@ -234,9 +234,9 @@ namespace OpenSim.Framework.Data.SQLite | |||
234 | /// <returns>A class containing item information</returns> | 234 | /// <returns>A class containing item information</returns> |
235 | public InventoryItemBase getInventoryItem(LLUUID item) | 235 | public InventoryItemBase getInventoryItem(LLUUID item) |
236 | { | 236 | { |
237 | DataRows[] rows = ds.Tables["inventoryitems"].Find(item); | 237 | DataRow row = ds.Tables["inventoryitems"].Rows.Find(item); |
238 | if (rows.Length == 1) | 238 | if (row != null) |
239 | return this.buildItem(rows[0]); | 239 | return this.buildItem(row); |
240 | else | 240 | else |
241 | return null; | 241 | return null; |
242 | } | 242 | } |