mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Attempt at fixing mantis #4411.
This commit is contained in:
@@ -139,9 +139,16 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
else
|
||||
{
|
||||
UserProfileData userProfile = m_commsManager.UserService.GetUserProfile(fname, lname);
|
||||
|
||||
|
||||
if (userProfile != null)
|
||||
{
|
||||
if (userProfile.UserAssetURI == null || userProfile.UserAssetURI == "")
|
||||
userProfile.UserAssetURI = m_commsManager.NetworkServersInfo.AssetURL;
|
||||
if (userProfile.UserInventoryURI == null || userProfile.UserInventoryURI == "")
|
||||
userProfile.UserInventoryURI = m_commsManager.NetworkServersInfo.InventoryURL;
|
||||
|
||||
return AddToCaches(userProfile);
|
||||
}
|
||||
else
|
||||
return null;
|
||||
}
|
||||
@@ -169,7 +176,14 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
{
|
||||
UserProfileData userProfile = m_commsManager.UserService.GetUserProfile(userID);
|
||||
if (userProfile != null)
|
||||
{
|
||||
if (userProfile.UserAssetURI == null || userProfile.UserAssetURI == "")
|
||||
userProfile.UserAssetURI = m_commsManager.NetworkServersInfo.AssetURL;
|
||||
if (userProfile.UserInventoryURI == null || userProfile.UserInventoryURI == "")
|
||||
userProfile.UserInventoryURI = m_commsManager.NetworkServersInfo.InventoryURL;
|
||||
|
||||
return AddToCaches(userProfile);
|
||||
}
|
||||
else
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user