From 664de1289838f17a0187ad543abcf58b4e445dd5 Mon Sep 17 00:00:00 2001
From: Sean Dague
Date: Thu, 27 Sep 2007 13:53:50 +0000
Subject: oops, I broke the build.  Fixed now

---
 OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'OpenSim')

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
         /// <returns>A class containing item information</returns>
         public InventoryItemBase getInventoryItem(LLUUID item)
         {
-            DataRows[] rows = ds.Tables["inventoryitems"].Find(item);
-            if (rows.Length == 1)
-                return this.buildItem(rows[0]);
+            DataRow row = ds.Tables["inventoryitems"].Rows.Find(item);
+            if (row != null)
+                return this.buildItem(row);
             else
                 return null;
         }
-- 
cgit v1.1