Skip to:
Content

BuddyPress.org

Ticket #2048: 2048.patch

File 2048.patch, 389 bytes (added by junsuijin, 10 years ago)

checks if $activity is an array and appropriately converts to $activity[0]

  • bp-core.php

     
    14601460
    14611461        $activity = get_usermeta( $bp->loggedin_user->id, 'last_activity' );
    14621462
     1463        if ( is_array( $activity ) )
     1464                $activity = $activity[0];
     1465
    14631466        if ( !is_numeric( $activity ) )
    14641467                $activity = strtotime( $activity );
    14651468