Update avatar picker search to work with OpenSearch people search

0.6.1-post-fixes
Melanie Thielker 2008-11-13 03:24:23 +00:00
parent 424792b39b
commit c18ce34d06
1 changed files with 2 additions and 2 deletions

View File

@ -422,7 +422,7 @@ namespace OpenSim.Data.MySQL
string[] querysplit; string[] querysplit;
querysplit = query.Split(' '); querysplit = query.Split(' ');
if (querysplit.Length == 2) if (querysplit.Length > 1 && querysplit[1].Trim() != String.Empty)
{ {
Dictionary<string, string> param = new Dictionary<string, string>(); Dictionary<string, string> param = new Dictionary<string, string>();
param["?first"] = objAlphaNumericPattern.Replace(querysplit[0], String.Empty) + "%"; param["?first"] = objAlphaNumericPattern.Replace(querysplit[0], String.Empty) + "%";
@ -460,7 +460,7 @@ namespace OpenSim.Data.MySQL
dbm.Release(); dbm.Release();
} }
} }
else if (querysplit.Length == 1) else
{ {
MySQLSuperManager dbm = GetLockedConnection("GeneratePickerResults"); MySQLSuperManager dbm = GetLockedConnection("GeneratePickerResults");