From cbc1943bed2084e19635ea0fbb9130b57c968d2e Mon Sep 17 00:00:00 2001 From: mark Date: Thu, 26 Apr 2007 19:21:11 +0000 Subject: [PATCH] oops :P --- Scripts/Gumps/AdminGump.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Scripts/Gumps/AdminGump.cs b/Scripts/Gumps/AdminGump.cs index 310e1e7af..490af849c 100644 --- a/Scripts/Gumps/AdminGump.cs +++ b/Scripts/Gumps/AdminGump.cs @@ -2042,7 +2042,7 @@ namespace Server.Gumps } case 7: { - ArrayList results = new ArrayList(); + ArrayList results; TextRelay matchEntry = info.GetTextEntry( 0 ); string match = ( matchEntry == null ? null : matchEntry.Text.Trim().ToLower() ); @@ -2050,12 +2050,13 @@ namespace Server.Gumps if ( match == null || match.Length == 0 ) { - results.Add( Accounts.GetAccounts() ); + results = new ArrayList( (ICollection)Accounts.GetAccounts() ); results.Sort( AccountComparer.Instance ); //notice = "You must enter a username to search."; } else { + results = new ArrayList(); foreach ( Account check in Accounts.GetAccounts() ) { if ( check.Username.ToLower().IndexOf( match ) >= 0 )