When searching for users, don't add users from the local cache if they have an invalid UUID
Resolves http://opensimulator.org/mantis/view.php?id=69350.8.0.3
parent
a2dd8f31de
commit
c8583e566d
|
@ -278,7 +278,8 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
|
||||||
{
|
{
|
||||||
foreach (UserData data in m_UserCache.Values)
|
foreach (UserData data in m_UserCache.Values)
|
||||||
{
|
{
|
||||||
if (users.Find(delegate(UserData d) { return d.Id == data.Id; }) == null &&
|
if (data.Id != UUID.Zero &&
|
||||||
|
users.Find(delegate(UserData d) { return d.Id == data.Id; }) == null &&
|
||||||
(data.FirstName.ToLower().StartsWith(query.ToLower()) || data.LastName.ToLower().StartsWith(query.ToLower())))
|
(data.FirstName.ToLower().StartsWith(query.ToLower()) || data.LastName.ToLower().StartsWith(query.ToLower())))
|
||||||
users.Add(data);
|
users.Add(data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue