From 41cc73233c1d2e17222fdc510606032701690a60 Mon Sep 17 00:00:00 2001 From: BlueWall Date: Mon, 24 Nov 2014 10:59:39 -0500 Subject: Re-work handling of email notifications settings. --- OpenSim/Services/UserProfilesService/UserProfilesService.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'OpenSim/Services/UserProfilesService/UserProfilesService.cs') diff --git a/OpenSim/Services/UserProfilesService/UserProfilesService.cs b/OpenSim/Services/UserProfilesService/UserProfilesService.cs index 675cd07..75101ff 100644 --- a/OpenSim/Services/UserProfilesService/UserProfilesService.cs +++ b/OpenSim/Services/UserProfilesService/UserProfilesService.cs @@ -209,7 +209,10 @@ namespace OpenSim.Services.ProfilesService pref.EMail = string.Empty; } else + { pref.EMail = account.Email; + UserPreferencesUpdate(ref pref, ref result); + } } catch { @@ -225,7 +228,14 @@ namespace OpenSim.Services.ProfilesService return false; } } - return ProfilesData.GetUserPreferences(ref pref, ref result); + if (!ProfilesData.GetUserPreferences (ref pref, ref result)) + return false; + + + if(string.IsNullOrEmpty(pref.EMail)) + pref.EMail = "No Email Address On Record"; + + return true; } #endregion User Preferences -- cgit v1.1