--- modules/user/user.module	Tue Jun 19 23:14:18 2007
+++ modules/user/user.module	Tue Jun 19 23:09:36 2007
@@ -801,7 +801,7 @@ function user_menu($may_cache) {
     if (arg(0) == 'user' && is_numeric(arg(1)) && arg(1) > 0) {
       $account = user_load(array('uid' => arg(1)));
 
-      if ($user !== FALSE) {
+      if ($account !== FALSE) {
         // Always let a user view their own account
         $view_access |= $user->uid == arg(1);
         // Only admins can view blocked accounts
