Ticket #314 (closed defect: fixed)

Opened 5 months ago

Last modified 5 months ago

user_add_friend typo

Reported by: kevin Assigned to: nobody
Priority: normal Milestone: 0.9.1
Component: core Version: 0.9.0
Severity: normal Keywords:
Cc: Patch Included: 0
Review Stage: reviewed

Description

The utility function user_add_friend in /lib/userlib.php only adds a friend if the friend record is already there. This is obviously incorrect!

The line with the "record_exists" should be "!record_exists".

Seems like Elgg does not actually use this function? Maybe it should?

Change History

02/18/08 21:11:15 changed by misja

  • status changed from new to closed.
  • resolution set to fixed.
  • review_stage changed from unreviewed to reviewed.

Please provide a patch next time :) Fixed in r1558