If you look at someone else's relationships pages, you are returned a list of all relationships in the db, not just those of that user. Additionally, you are sometimes returned info for the user and the user's relationship. The former is happening b/c of a typo in a variable name (viewed_user vs. viewd_user--missing "e"). The latter is happening b/c the code's comparing using your user object rather than user x's relationship object. Finally, there was some reversed code that returned 404 for real users, the page for uid == 0. A patch is attached.

CommentFileSizeAuthor
user_relationships_theme.patch1.24 KBgwen
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sprsquish’s picture

Status: Active » Reviewed & tested by the community

looks fine to me. Must have completly missed the err after creating the previous patch. I won't be available this weekend so please commit the patch the next chance you get.

gwen’s picture

Status: Reviewed & tested by the community » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)