Re-work handling of email notifications settings.
parent
12108bf6e9
commit
41cc73233c
|
@ -916,9 +916,6 @@ namespace OpenSim.Data.MySQL
|
||||||
bool.TryParse((string)reader["imviaemail"], out pref.IMViaEmail);
|
bool.TryParse((string)reader["imviaemail"], out pref.IMViaEmail);
|
||||||
bool.TryParse((string)reader["visible"], out pref.Visible);
|
bool.TryParse((string)reader["visible"], out pref.Visible);
|
||||||
pref.EMail = (string)reader["email"];
|
pref.EMail = (string)reader["email"];
|
||||||
|
|
||||||
if(string.IsNullOrEmpty(pref.EMail))
|
|
||||||
pref.EMail = "No EMail Address Provided";
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -902,9 +902,6 @@ namespace OpenSim.Data.PGSQL
|
||||||
bool.TryParse((string)reader["imviaemail"], out pref.IMViaEmail);
|
bool.TryParse((string)reader["imviaemail"], out pref.IMViaEmail);
|
||||||
bool.TryParse((string)reader["visible"], out pref.Visible);
|
bool.TryParse((string)reader["visible"], out pref.Visible);
|
||||||
pref.EMail = (string)reader["email"];
|
pref.EMail = (string)reader["email"];
|
||||||
|
|
||||||
if(string.IsNullOrEmpty(pref.EMail))
|
|
||||||
pref.EMail = "No EMail Address Provided";
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -799,9 +799,6 @@ namespace OpenSim.Data.SQLite
|
||||||
bool.TryParse((string)reader["imviaemail"], out pref.IMViaEmail);
|
bool.TryParse((string)reader["imviaemail"], out pref.IMViaEmail);
|
||||||
bool.TryParse((string)reader["visible"], out pref.Visible);
|
bool.TryParse((string)reader["visible"], out pref.Visible);
|
||||||
pref.EMail = (string)reader["email"];
|
pref.EMail = (string)reader["email"];
|
||||||
|
|
||||||
if(string.IsNullOrEmpty(pref.EMail))
|
|
||||||
pref.EMail = "No EMail Address Provided";
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -209,7 +209,10 @@ namespace OpenSim.Services.ProfilesService
|
||||||
pref.EMail = string.Empty;
|
pref.EMail = string.Empty;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
pref.EMail = account.Email;
|
pref.EMail = account.Email;
|
||||||
|
UserPreferencesUpdate(ref pref, ref result);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
@ -225,7 +228,14 @@ namespace OpenSim.Services.ProfilesService
|
||||||
return false;
|
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
|
#endregion User Preferences
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue