diff --git a/modules/user/user.module b/modules/user/user.module index ecc72747da6f3d7d2203835753671793140d5e9a..3a58b4462ae4dda068f651a52c49e2d9d8e940cf 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -1165,7 +1165,7 @@ function user_category_load($uid, &$map, $index) { $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;