- Timestamp:
- 01/02/2017 08:13:14 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-friends/classes/class-bp-friends-friendship.php
r11242 r11366 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();
Note: See TracChangeset
for help on using the changeset viewer.