From 934c54de5af4cc0180e154c2fa5a0780d358828d Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Sun, 9 Dec 2007 21:48:29 +0000 Subject: From Justin Casey (IBM) This corrects an off by one mistake in my previous patch - with this patch the user root inventory folder should once again be correctly returned under sqlite. This was done correctly for mysql and mssql, my only (feeble) defence is that with sqlite the code was a little different and I was eliminating clauses rather than slightly modifying them. --- OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs') diff --git a/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs b/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs index 94084a6..ddc0694 100644 --- a/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs +++ b/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs @@ -243,7 +243,7 @@ namespace OpenSim.Framework.Data.SQLite // nicer to print some message to this effect, but this feels like it's too low a // to put such a message out, and it's too minor right now to spare the time to // suitably refactor. - if (folders.Count > 1) + if (folders.Count > 0) { return folders[0]; } -- cgit v1.1