Index: modules/user/user.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/user/user.module,v
retrieving revision 1.892.2.11
diff -u -p -r1.892.2.11 user.module
--- modules/user/user.module	14 Jan 2009 23:34:08 -0000	1.892.2.11
+++ modules/user/user.module	9 Feb 2009 17:09:25 -0000
@@ -1136,7 +1136,7 @@ function user_category_load($uid, &$map,
     $accounts[$uid] = user_load($uid);
   }
   $valid = TRUE;
-  if ($account = $accounts[$uid]) {
+  if (($account = $accounts[$uid]) && isset($map[$index + 1]) && $map[$index + 1] == 'edit') {
     // Since the path is like user/%/edit/category_name, the category name will
     // be at a position 2 beyond the index corresponding to the % wildcard.
     $category_index = $index + 2;
