Skip to:
Content

BuddyPress.org

Ticket #7506: 7506.01.patch

File 7506.01.patch, 655 bytes (added by r-a-y, 9 years ago)
  • src/bp-friends/bp-friends-functions.php

     
    4444
    4545        // Setup the friendship data.
    4646        $friendship = new BP_Friends_Friendship;
    47         $friendship->initiator_user_id = $initiator_userid;
    48         $friendship->friend_user_id    = $friend_userid;
     47        $friendship->initiator_user_id = (int) $initiator_userid;
     48        $friendship->friend_user_id    = (int) $friend_userid;
    4949        $friendship->is_confirmed      = 0;
    5050        $friendship->is_limited        = 0;
    5151        $friendship->date_created      = bp_core_current_time();