diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLUserData.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Data/MySQL/MySQLUserData.cs b/OpenSim/Data/MySQL/MySQLUserData.cs index 82b5bbc..288ca86 100644 --- a/OpenSim/Data/MySQL/MySQLUserData.cs +++ b/OpenSim/Data/MySQL/MySQLUserData.cs | |||
@@ -422,7 +422,7 @@ namespace OpenSim.Data.MySQL | |||
422 | 422 | ||
423 | string[] querysplit; | 423 | string[] querysplit; |
424 | querysplit = query.Split(' '); | 424 | querysplit = query.Split(' '); |
425 | if (querysplit.Length == 2) | 425 | if (querysplit.Length > 1 && querysplit[1].Trim() != String.Empty) |
426 | { | 426 | { |
427 | Dictionary<string, string> param = new Dictionary<string, string>(); | 427 | Dictionary<string, string> param = new Dictionary<string, string>(); |
428 | param["?first"] = objAlphaNumericPattern.Replace(querysplit[0], String.Empty) + "%"; | 428 | param["?first"] = objAlphaNumericPattern.Replace(querysplit[0], String.Empty) + "%"; |
@@ -460,7 +460,7 @@ namespace OpenSim.Data.MySQL | |||
460 | dbm.Release(); | 460 | dbm.Release(); |
461 | } | 461 | } |
462 | } | 462 | } |
463 | else if (querysplit.Length == 1) | 463 | else |
464 | { | 464 | { |
465 | MySQLSuperManager dbm = GetLockedConnection("GeneratePickerResults"); | 465 | MySQLSuperManager dbm = GetLockedConnection("GeneratePickerResults"); |
466 | 466 | ||