Fixed updating usersettings in the database

Resolves http://opensimulator.org/mantis/view.php?id=6938
0.8.0.3
Oren Hurvitz 2014-01-05 11:28:33 +02:00
parent b9e0d0fdb2
commit 1b30ae81b5
1 changed files with 2 additions and 2 deletions

View File

@ -974,8 +974,8 @@ namespace OpenSim.Data.MySQL
dbcon.Open(); dbcon.Open();
using (MySqlCommand cmd = new MySqlCommand(query, dbcon)) using (MySqlCommand cmd = new MySqlCommand(query, dbcon))
{ {
cmd.Parameters.AddWithValue("?ImViaEmail", pref.IMViaEmail); cmd.Parameters.AddWithValue("?ImViaEmail", pref.IMViaEmail.ToString().ToLower());
cmd.Parameters.AddWithValue("?Visible", pref.Visible); cmd.Parameters.AddWithValue("?Visible", pref.Visible.ToString().ToLower());
cmd.Parameters.AddWithValue("?uuid", pref.UserId.ToString()); cmd.Parameters.AddWithValue("?uuid", pref.UserId.ToString());
cmd.ExecuteNonQuery(); cmd.ExecuteNonQuery();