diff options
Diffstat (limited to 'OpenSim/Data/MySQL/MySQLUserProfilesData.cs')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLUserProfilesData.cs | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/OpenSim/Data/MySQL/MySQLUserProfilesData.cs b/OpenSim/Data/MySQL/MySQLUserProfilesData.cs index dca80c3..13e0a57 100644 --- a/OpenSim/Data/MySQL/MySQLUserProfilesData.cs +++ b/OpenSim/Data/MySQL/MySQLUserProfilesData.cs | |||
@@ -546,6 +546,10 @@ namespace OpenSim.Data.MySQL | |||
546 | reader.Read(); | 546 | reader.Read(); |
547 | notes.Notes = OSD.FromString((string)reader["notes"]); | 547 | notes.Notes = OSD.FromString((string)reader["notes"]); |
548 | } | 548 | } |
549 | else | ||
550 | { | ||
551 | notes.Notes = OSD.FromString(""); | ||
552 | } | ||
549 | } | 553 | } |
550 | } | 554 | } |
551 | } | 555 | } |
@@ -927,15 +931,19 @@ namespace OpenSim.Data.MySQL | |||
927 | } | 931 | } |
928 | else | 932 | else |
929 | { | 933 | { |
934 | dbcon.Close(); | ||
935 | dbcon.Open(); | ||
936 | |||
937 | query = "INSERT INTO usersettings VALUES "; | ||
938 | query += "(?uuid,'false','false', ?Email)"; | ||
939 | |||
930 | using (MySqlCommand put = new MySqlCommand(query, dbcon)) | 940 | using (MySqlCommand put = new MySqlCommand(query, dbcon)) |
931 | { | 941 | { |
932 | query = "INSERT INTO usersettings VALUES "; | ||
933 | query += "(?Id,'false','false', '')"; | ||
934 | 942 | ||
935 | lock(Lock) | 943 | put.Parameters.AddWithValue("?Email", pref.EMail); |
936 | { | 944 | put.Parameters.AddWithValue("?uuid", pref.UserId.ToString()); |
937 | put.ExecuteNonQuery(); | 945 | |
938 | } | 946 | put.ExecuteNonQuery(); |
939 | } | 947 | } |
940 | } | 948 | } |
941 | } | 949 | } |