Changeset 5729 for trunk/bp-friends/bp-friends-classes.php
- Timestamp:
- 02/11/2012 09:32:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-friends/bp-friends-classes.php
r5709 r5729 133 133 return 0; 134 134 135 bp_update_user_meta( $user_id, 'total_friend_count', (int) $count );135 bp_update_user_meta( $user_id, 'total_friend_count', (int) $count ); 136 136 return (int) $count; 137 137 } … … 174 174 return false; 175 175 176 return array( 'friends' => $filtered_friend_ids, 'total' => (int) $total_friend_ids );176 return array( 'friends' => $filtered_friend_ids, 'total' => (int) $total_friend_ids ); 177 177 } 178 178 … … 336 336 337 337 // Loop through friend_ids and update their counts 338 foreach ( (array) $friend_ids as $friend_id ) {338 foreach ( (array) $friend_ids as $friend_id ) { 339 339 BP_Friends_Friendship::total_friend_count( $friend_id ); 340 340 }
Note: See TracChangeset
for help on using the changeset viewer.