aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2015-01-13 21:40:49 +0000
committerJustin Clark-Casey (justincc)2015-01-13 21:40:49 +0000
commit24695dc05b0687c1fddd4a0364391166fa9aa133 (patch)
tree8fdcb086b9991a424c2cf79a4022f9db91855328 /OpenSim/Data
parentChange PGSQLUserProfilesData.UpdateUserPreferences() to directly pass the UUI... (diff)
downloadopensim-SC-24695dc05b0687c1fddd4a0364391166fa9aa133.zip
opensim-SC-24695dc05b0687c1fddd4a0364391166fa9aa133.tar.gz
opensim-SC-24695dc05b0687c1fddd4a0364391166fa9aa133.tar.bz2
opensim-SC-24695dc05b0687c1fddd4a0364391166fa9aa133.tar.xz
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
Diffstat (limited to 'OpenSim/Data')
-rw-r--r--OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs b/OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs
index c8424cc..c7b1d8b 100644
--- a/OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs
+++ b/OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs
@@ -940,9 +940,9 @@ namespace OpenSim.Data.PGSQL
940 dbcon.Open(); 940 dbcon.Open();
941 using (NpgsqlCommand cmd = new NpgsqlCommand(query, dbcon)) 941 using (NpgsqlCommand cmd = new NpgsqlCommand(query, dbcon))
942 { 942 {
943 cmd.Parameters.Add(m_database.CreateParameter("ImViaEmail", pref.IMViaEmail.ToString().ToLower ())); 943 cmd.Parameters.Add(m_database.CreateParameter("ImViaEmail", pref.IMViaEmail));
944 cmd.Parameters.Add(m_database.CreateParameter("Visible", pref.Visible.ToString().ToLower ())); 944 cmd.Parameters.Add(m_database.CreateParameter("Visible", pref.Visible));
945 cmd.Parameters.Add(m_database.CreateParameter("EMail", pref.EMail.ToString().ToLower ())); 945 cmd.Parameters.Add(m_database.CreateParameter("EMail", pref.EMail.ToString().ToLower()));
946 cmd.Parameters.Add(m_database.CreateParameter("uuid", pref.UserId)); 946 cmd.Parameters.Add(m_database.CreateParameter("uuid", pref.UserId));
947 947
948 cmd.ExecuteNonQuery(); 948 cmd.ExecuteNonQuery();