diff --git src/bp-friends/classes/class-bp-friends-friendship.php src/bp-friends/classes/class-bp-friends-friendship.php
index 778738a..2973b7f 100644
|
|
|
class BP_Friends_Friendship { |
| 644 | 644 | $last_activities = BP_Core_User::get_last_activity( $user_ids ); |
| 645 | 645 | |
| 646 | 646 | // Sort and structure as expected in legacy function. |
| 647 | | usort( $last_activities, create_function( '$a, $b', ' |
| 648 | | if ( $a["date_recorded"] == $b["date_recorded"] ) { |
| | 647 | usort( $last_activities, function( $a, $b ) { |
| | 648 | if ( $a['date_recorded'] == $b['date_recorded'] ) { |
| 649 | 649 | return 0; |
| 650 | 650 | } |
| 651 | 651 | |
| 652 | | return ( strtotime( $a["date_recorded"] ) < strtotime( $b["date_recorded"] ) ) ? 1 : -1; |
| 653 | | ' ) ); |
| | 652 | return ( strtotime( $a['date_recorded'] ) < strtotime( $b['date_recorded'] ) ) ? 1 : - 1; |
| | 653 | } ); |
| 654 | 654 | |
| 655 | 655 | $retval = array(); |
| 656 | 656 | foreach ( $last_activities as $last_activity ) { |