Fix oversight in David's checkin

svn path=/trunk/boinc/; revision=8883
This commit is contained in:
Bruce Allen 2005-11-19 21:15:29 +00:00
parent b803f9b432
commit 82bfb01de4
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ $user = lookup_user_email_addr($email_addr);
// if no password set, make it the account key
//
if (!strlen($user->passwd_hash)) {
if ($user && !strlen($user->passwd_hash)) {
$user->passwd_hash = md5($user->authenticator.$user->email_addr);
mysql_query("update user set passwd_hash='$user->passwd_hash' where id=$user->id");
}