After spending a few hours tracking down problems with my code interfacing with the user_relationships module, I modified my copy to do a few extra sanity checks on various values. In particular, in user_relationships_request_relationship, an invalid UID or relationship ID will result in a NULL when the object is loaded, which can cause invalid data to end up in the tables.

Here are the changes I made.

CommentFileSizeAuthor
user_relationships_careful.patch2.31 KBscottgifford

Comments

alex.k’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.