diff options
author | BlueWall | 2014-11-25 19:27:28 -0500 |
---|---|---|
committer | BlueWall | 2014-11-25 19:27:28 -0500 |
commit | 62b778ca4d038d517f3e99be0037ef502e201b29 (patch) | |
tree | 79f6f7e467ecabeb81602d03fd9a44a74a919238 /OpenSim/Data/MySQL/MySQLUserProfilesData.cs | |
parent | refactor: Move methods to start a monitored thread, start work in its own thr... (diff) | |
parent | Fix whitespace hoping to avoid a flogging (diff) | |
download | opensim-SC_OLD-62b778ca4d038d517f3e99be0037ef502e201b29.zip opensim-SC_OLD-62b778ca4d038d517f3e99be0037ef502e201b29.tar.gz opensim-SC_OLD-62b778ca4d038d517f3e99be0037ef502e201b29.tar.bz2 opensim-SC_OLD-62b778ca4d038d517f3e99be0037ef502e201b29.tar.xz |
Merge branch 'master' of /team/src/opensim
Diffstat (limited to 'OpenSim/Data/MySQL/MySQLUserProfilesData.cs')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLUserProfilesData.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Data/MySQL/MySQLUserProfilesData.cs b/OpenSim/Data/MySQL/MySQLUserProfilesData.cs index 0dd9e2f..1f616fe 100644 --- a/OpenSim/Data/MySQL/MySQLUserProfilesData.cs +++ b/OpenSim/Data/MySQL/MySQLUserProfilesData.cs | |||
@@ -915,7 +915,7 @@ namespace OpenSim.Data.MySQL | |||
915 | reader.Read(); | 915 | reader.Read(); |
916 | bool.TryParse((string)reader["imviaemail"], out pref.IMViaEmail); | 916 | bool.TryParse((string)reader["imviaemail"], out pref.IMViaEmail); |
917 | bool.TryParse((string)reader["visible"], out pref.Visible); | 917 | bool.TryParse((string)reader["visible"], out pref.Visible); |
918 | pref.EMail = (string)reader["email"]; | 918 | pref.EMail = (string)reader["email"]; |
919 | } | 919 | } |
920 | else | 920 | else |
921 | { | 921 | { |
@@ -955,7 +955,7 @@ namespace OpenSim.Data.MySQL | |||
955 | query += "UPDATE usersettings SET "; | 955 | query += "UPDATE usersettings SET "; |
956 | query += "imviaemail=?ImViaEmail, "; | 956 | query += "imviaemail=?ImViaEmail, "; |
957 | query += "visible=?Visible, "; | 957 | query += "visible=?Visible, "; |
958 | query += "email=?EMail "; | 958 | query += "email=?EMail "; |
959 | query += "WHERE useruuid=?uuid"; | 959 | query += "WHERE useruuid=?uuid"; |
960 | 960 | ||
961 | try | 961 | try |
@@ -967,8 +967,8 @@ namespace OpenSim.Data.MySQL | |||
967 | { | 967 | { |
968 | cmd.Parameters.AddWithValue("?ImViaEmail", pref.IMViaEmail.ToString().ToLower()); | 968 | cmd.Parameters.AddWithValue("?ImViaEmail", pref.IMViaEmail.ToString().ToLower()); |
969 | cmd.Parameters.AddWithValue("?Visible", pref.Visible.ToString().ToLower()); | 969 | cmd.Parameters.AddWithValue("?Visible", pref.Visible.ToString().ToLower()); |
970 | cmd.Parameters.AddWithValue("?uuid", pref.UserId.ToString()); | 970 | cmd.Parameters.AddWithValue("?uuid", pref.UserId.ToString()); |
971 | cmd.Parameters.AddWithValue("?EMail", pref.EMail.ToString().ToLower()); | 971 | cmd.Parameters.AddWithValue("?EMail", pref.EMail.ToString().ToLower()); |
972 | 972 | ||
973 | cmd.ExecuteNonQuery(); | 973 | cmd.ExecuteNonQuery(); |
974 | } | 974 | } |
@@ -977,7 +977,7 @@ namespace OpenSim.Data.MySQL | |||
977 | catch (Exception e) | 977 | catch (Exception e) |
978 | { | 978 | { |
979 | m_log.ErrorFormat("[PROFILES_DATA]" + | 979 | m_log.ErrorFormat("[PROFILES_DATA]" + |
980 | ": UserPreferencesUpdate exception {0} {1}", e.Message, e.InnerException); | 980 | ": UserPreferencesUpdate exception {0} {1}", e.Message, e.InnerException); |
981 | result = e.Message; | 981 | result = e.Message; |
982 | return false; | 982 | return false; |
983 | } | 983 | } |