Skip to:
Content

BuddyPress.org

Changeset 11021


Ignore:
Timestamp:
08/20/2016 07:32:24 PM (3 years ago)
Author:
r-a-y
Message:

Core: Make sure user last activity is saved as a date string.

Broke when refactoring some strtotime() calls in r11019.

See #5781.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-functions.php

    r11019 r11021  
    14621462    // If it's been more than 5 minutes, record a newer last-activity time.
    14631463    if ( empty( $activity ) || ( $current_time >= strtotime( '+5 minutes', $activity ) ) ) {
    1464         bp_update_user_last_activity( $user_id, $current_time );
     1464        bp_update_user_last_activity( $user_id, date( 'Y-m-d H:i:s', $current_time ) );
    14651465    }
    14661466}
Note: See TracChangeset for help on using the changeset viewer.