Fix PGSQLUserProfilesData.UpdateUserPreferences() imviaemail and visible casts. These should be left as bools, not converted to strings.
Relates to http://opensimulator.org/mantis/view.php?id=7398sedebug
parent
46e8a99526
commit
24695dc05b
|
@ -940,9 +940,9 @@ namespace OpenSim.Data.PGSQL
|
|||
dbcon.Open();
|
||||
using (NpgsqlCommand cmd = new NpgsqlCommand(query, dbcon))
|
||||
{
|
||||
cmd.Parameters.Add(m_database.CreateParameter("ImViaEmail", pref.IMViaEmail.ToString().ToLower ()));
|
||||
cmd.Parameters.Add(m_database.CreateParameter("Visible", pref.Visible.ToString().ToLower ()));
|
||||
cmd.Parameters.Add(m_database.CreateParameter("EMail", pref.EMail.ToString().ToLower ()));
|
||||
cmd.Parameters.Add(m_database.CreateParameter("ImViaEmail", pref.IMViaEmail));
|
||||
cmd.Parameters.Add(m_database.CreateParameter("Visible", pref.Visible));
|
||||
cmd.Parameters.Add(m_database.CreateParameter("EMail", pref.EMail.ToString().ToLower()));
|
||||
cmd.Parameters.Add(m_database.CreateParameter("uuid", pref.UserId));
|
||||
|
||||
cmd.ExecuteNonQuery();
|
||||
|
|
Loading…
Reference in New Issue