There is a straightforward error in the _user_relationship_process_query_argument() function after the preg_match for a relative operator such as < or >=. The value is got from $matches[3] though inspection of the pattern shows that $matches[2] must be meant. Patch attached.

Comments

Berdir’s picture

Status: Active » Closed (won't fix)

Sorry for pinging the participants.

Now that Drupal 7 is out, there is no support for Drupal 5 and the corresponding modules anymore. Therefore, I'm closing all old issues which are still open.

I suggest you upgrade to Drupal 6 or 7 and figure out if you're feature is still needed or the bug still exists and open a new issue in that case.

greenmachine’s picture

Version: 5.x-2.9 » 6.x-1.0
Status: Closed (won't fix) » Active

I can confirm that the same bug is present in the 6.x-1.0 version of the module.

View the file here: http://drupalcode.org/viewvc/drupal/contributions/modules/user_relations...

Line 183 sets the value to $matches[3] when (at least for created_at) it should be $matches[2]

mrf’s picture

Issue tags: +6.x-1.1

Tagging for a closer look.

mrf’s picture

Version: 6.x-1.0 » 7.x-1.x-dev

Fixed in latest 6.x dev
http://drupalcode.org/project/user_relationships.git/commit/08e15a2

Moving to 7 in case its still present there.

mrf’s picture

Status: Active » Closed (duplicate)

Well crap this is a duplicate of #985672: user_relationships_load not handling date-based parameters correctly which already had a patch, oh well guess its good to confirm from two different perspectives that we had the right fix...