Skip to:
Content

BuddyPress.org

Ticket #5603: 5603.02.patch

File 5603.02.patch, 819 bytes (added by imath, 10 years ago)
  • bp-templates/bp-legacy/buddypress-functions.php

    diff --git bp-templates/bp-legacy/buddypress-functions.php bp-templates/bp-legacy/buddypress-functions.php
    index bca42bb..784b2dc 100644
    function bp_legacy_theme_post_update() { 
    706706        if ( empty( $activity_id ) )
    707707                exit( '-1<div id="message" class="error"><p>' . __( 'There was a problem posting your update, please try again.', 'buddypress' ) . '</p></div>' );
    708708
    709         $last_recorded = isset( $_POST['since'] ) ? date( 'Y-m-d H:i:s', intval( $_POST['since'] ) ) : 0;
     709        $last_recorded = ! empty( $_POST['since'] ) ? date( 'Y-m-d H:i:s', intval( $_POST['since'] ) ) : 0;
    710710        if ( $last_recorded ) {
    711711                $activity_args = array( 'since' => $last_recorded );
    712712                $bp->activity->last_recorded = $last_recorded;