diff --git a/includes/extend/buddypress/activity.php b/includes/extend/buddypress/activity.php
index 40072d1..cde3def 100644
a
|
b
|
class BBP_BuddyPress_Activity { |
275 | 275 | |
276 | 276 | // Get the activity stream item, bail if it doesn't exist |
277 | 277 | $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'] ) ) ) |
279 | 279 | return null; |
280 | 280 | |
281 | 281 | // Return the activity ID since we've verified the connection |