From c18ce34d066fc409f1982caed94217b83c152f58 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Thu, 13 Nov 2008 03:24:23 +0000 Subject: [PATCH] Update avatar picker search to work with OpenSearch people search --- OpenSim/Data/MySQL/MySQLUserData.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenSim/Data/MySQL/MySQLUserData.cs b/OpenSim/Data/MySQL/MySQLUserData.cs index 82b5bbc263..288ca86815 100644 --- a/OpenSim/Data/MySQL/MySQLUserData.cs +++ b/OpenSim/Data/MySQL/MySQLUserData.cs @@ -422,7 +422,7 @@ namespace OpenSim.Data.MySQL string[] querysplit; querysplit = query.Split(' '); - if (querysplit.Length == 2) + if (querysplit.Length > 1 && querysplit[1].Trim() != String.Empty) { Dictionary param = new Dictionary(); param["?first"] = objAlphaNumericPattern.Replace(querysplit[0], String.Empty) + "%"; @@ -460,7 +460,7 @@ namespace OpenSim.Data.MySQL dbm.Release(); } } - else if (querysplit.Length == 1) + else { MySQLSuperManager dbm = GetLockedConnection("GeneratePickerResults");