parent
972143b592
commit
7d6dc3b099
|
@ -540,7 +540,7 @@ namespace OpenSim.Data.MySQL
|
|||
retval.ID = id;
|
||||
retval.FirstName = (string) reader["username"];
|
||||
retval.SurName = (string) reader["lastname"];
|
||||
retval.Email = (string) reader["email"];
|
||||
retval.Email = (reader.IsDBNull(reader.GetOrdinal("email"))) ? "" : (string) reader["email"];
|
||||
|
||||
retval.PasswordHash = (string) reader["passwordHash"];
|
||||
retval.PasswordSalt = (string) reader["passwordSalt"];
|
||||
|
|
|
@ -813,7 +813,8 @@ namespace OpenSim.Data.SQLite
|
|||
user.ID = tmp;
|
||||
user.FirstName = (String) row["username"];
|
||||
user.SurName = (String) row["surname"];
|
||||
user.Email = (String) row["email"];
|
||||
user.Email = (row.IsNull("email")) ? "" : (String) row["email"];
|
||||
|
||||
user.PasswordHash = (String) row["passwordHash"];
|
||||
user.PasswordSalt = (String) row["passwordSalt"];
|
||||
|
||||
|
|
Loading…
Reference in New Issue