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");