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=7398
sedebug
Justin Clark-Casey (justincc) 2015-01-13 21:40:49 +00:00
parent 46e8a99526
commit 24695dc05b
1 changed files with 3 additions and 3 deletions

View File

@ -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();