Skip to:
Content

bbPress.org

Ticket #2992: 2992.diff

File 2992.diff, 706 bytes (added by boonebgorges, 9 years ago)
  • includes/extend/buddypress/activity.php

    diff --git a/includes/extend/buddypress/activity.php b/includes/extend/buddypress/activity.php
    index 40072d1..cde3def 100644
    a b class BBP_BuddyPress_Activity { 
    275275
    276276                // Get the activity stream item, bail if it doesn't exist
    277277                $existing = bp_activity_get_specific( array( 'activity_ids' => $activity_id, 'show_hidden' => true, 'spam' => 'all', ) );
    278                 if ( empty( $existing['total'] ) || ( 1 !== (int) $existing['total'] ) )
     278                if ( empty( $existing['activities'] ) || ( 1 !== count( $existing['activities'] ) ) )
    279279                        return null;
    280280
    281281                // Return the activity ID since we've verified the connection