diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLUserProfilesData.cs | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/OpenSim/Data/MySQL/MySQLUserProfilesData.cs b/OpenSim/Data/MySQL/MySQLUserProfilesData.cs index 63492c2..0bf9595 100644 --- a/OpenSim/Data/MySQL/MySQLUserProfilesData.cs +++ b/OpenSim/Data/MySQL/MySQLUserProfilesData.cs | |||
@@ -925,15 +925,19 @@ namespace OpenSim.Data.MySQL | |||
925 | } | 925 | } |
926 | else | 926 | else |
927 | { | 927 | { |
928 | dbcon.Close(); | ||
929 | dbcon.Open(); | ||
930 | |||
931 | query = "INSERT INTO usersettings VALUES "; | ||
932 | query += "(?uuid,'false','false', ?Email)"; | ||
933 | |||
928 | using (MySqlCommand put = new MySqlCommand(query, dbcon)) | 934 | using (MySqlCommand put = new MySqlCommand(query, dbcon)) |
929 | { | 935 | { |
930 | query = "INSERT INTO usersettings VALUES "; | ||
931 | query += "(?Id,'false','false', '')"; | ||
932 | 936 | ||
933 | lock(Lock) | 937 | put.Parameters.AddWithValue("?Email", pref.EMail); |
934 | { | 938 | put.Parameters.AddWithValue("?uuid", pref.UserId.ToString()); |
935 | put.ExecuteNonQuery(); | 939 | |
936 | } | 940 | put.ExecuteNonQuery(); |
937 | } | 941 | } |
938 | } | 942 | } |
939 | } | 943 | } |