Changeset 5301 for trunk/bp-friends/bp-friends-classes.php
- Timestamp:
- 11/08/2011 01:14:31 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-friends/bp-friends-classes.php
r4934 r5301 42 42 43 43 // if running from ajax. 44 if ( ! $bp->displayed_user->id)44 if ( !bp_displayed_user_id() ) 45 45 $bp->displayed_user->id = $creds['current_userid']; 46 46 47 47 if ( $this->populate_friend_details ) { 48 if ( $this->friend_user_id == $bp->displayed_user->id) {48 if ( $this->friend_user_id == bp_displayed_user_id() ) { 49 49 $this->friend = new BP_Core_User( $this->initiator_user_id ); 50 50 } else { … … 127 127 128 128 if ( !$user_id ) 129 $user_id = ( $bp->displayed_user->id ) ? $bp->displayed_user->id: $bp->loggedin_user->id;129 $user_id = ( bp_displayed_user_id() ) ? bp_displayed_user_id() : $bp->loggedin_user->id; 130 130 131 131 /* This is stored in 'total_friend_count' usermeta.
Note: See TracChangeset
for help on using the changeset viewer.