mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
== string.Empty is .Lenght == 0
This commit is contained in:
@@ -141,7 +141,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
||||
if (m_RestrictAppearanceAbroad)
|
||||
{
|
||||
m_AccountName = transferConfig.GetString("AccountForAppearance", string.Empty);
|
||||
if (m_AccountName == string.Empty)
|
||||
if (m_AccountName.Length == 0)
|
||||
m_log.WarnFormat("[HG ENTITY TRANSFER MODULE]: RestrictAppearanceAbroad is on, but no account has been given for avatar appearance!");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -411,7 +411,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
|
||||
private bool IsLocalInventoryAssetsUser(UUID uuid, out string assetsURL)
|
||||
{
|
||||
assetsURL = UserManagementModule.GetUserServerURL(uuid, "AssetServerURI");
|
||||
if (assetsURL == string.Empty)
|
||||
if (assetsURL.Length == 0)
|
||||
{
|
||||
AgentCircuitData agent = m_Scene.AuthenticateHandler.GetAgentCircuitData(uuid);
|
||||
if (agent != null)
|
||||
|
||||
Reference in New Issue
Block a user