diff options
Diffstat (limited to 'OpenSim/Data/MSSQL/MSSQLUserData.cs')
-rw-r--r-- | OpenSim/Data/MSSQL/MSSQLUserData.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLUserData.cs b/OpenSim/Data/MSSQL/MSSQLUserData.cs index c04dbda..6efb89d 100644 --- a/OpenSim/Data/MSSQL/MSSQLUserData.cs +++ b/OpenSim/Data/MSSQL/MSSQLUserData.cs | |||
@@ -1125,6 +1125,10 @@ ELSE | |||
1125 | retval.ID = new UUID((Guid)reader["UUID"]); | 1125 | retval.ID = new UUID((Guid)reader["UUID"]); |
1126 | retval.FirstName = (string)reader["username"]; | 1126 | retval.FirstName = (string)reader["username"]; |
1127 | retval.SurName = (string)reader["lastname"]; | 1127 | retval.SurName = (string)reader["lastname"]; |
1128 | if (reader.IsDBNull(reader.GetOrdinal("email"))) | ||
1129 | retval.Email = ""; | ||
1130 | else | ||
1131 | retval.Email = (string)reader["email"]; | ||
1128 | 1132 | ||
1129 | retval.PasswordHash = (string)reader["passwordHash"]; | 1133 | retval.PasswordHash = (string)reader["passwordHash"]; |
1130 | retval.PasswordSalt = (string)reader["passwordSalt"]; | 1134 | retval.PasswordSalt = (string)reader["passwordSalt"]; |