From 82bfb01de4052ee63d277bd3060fbc9eb01bb951 Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Sat, 19 Nov 2005 21:15:29 +0000 Subject: [PATCH] Fix oversight in David's checkin svn path=/trunk/boinc/; revision=8883 --- html/user/lookup_account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/user/lookup_account.php b/html/user/lookup_account.php index b9a0901ff5..fb08e5accc 100644 --- a/html/user/lookup_account.php +++ b/html/user/lookup_account.php @@ -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"); }