Changes between Version 1 and Version 2 of Ticket #2690, comment 1
- Timestamp:
- 09/21/2014 07:56:56 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2690, comment 1
v1 v2 9 9 // $existing = bp_activity_get_specific( array( 'activity_ids' => $activity_id, 'show_hidden' => true, 'spam' => 'all') ); 10 10 // if ( empty( $existing['total'] ) || ( 1 !== (int) $existing['total'] ) ) 11 // return null; //1; //null;11 // return null; 12 12 }}} 13 13 Duplicate entries are not created. And the body of the activity item is updated. 14 14 15 Otherwise, $existing[total'] is always empty, so null is returned and a new Activity item is created. 15 16 I also tried, without success, adding 'count_total' => true to the bp_activity_get_specific call. 16 17