Skip to:
Content

BuddyPress.org

Changeset 7953


Ignore:
Timestamp:
02/21/2014 03:22:48 PM (11 years ago)
Author:
boonebgorges
Message:

Clarify syntax related to r7952.

Fixes #5328

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-templates/bp-legacy/buddypress-functions.php

    r7952 r7953  
    685685        exit( '-1<div id="message" class="error"><p>' . __( 'There was a problem posting your update, please try again.', 'buddypress' ) . '</p></div>' );
    686686
    687     if ( ! empty( $_POST['offset'] ) && $last_id = absint( $_POST['offset'] ) ) {
     687    $last_id = isset( $_POST['offset'] ) ? absint( $_POST['offset'] ) : 0;
     688    if ( $last_id ) {
    688689        $activity_args = array( 'offset' => $last_id );
    689690        $bp->activity->new_update_id = $activity_id;
Note: See TracChangeset for help on using the changeset viewer.