Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/18/2012 06:09:01 PM (14 years ago)
Author:
djpaul
Message:

Better handle any failures when calling Akismet in the Activity component. Fixes #4358, props johnjamesjacoby

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-akismet.php

    r6133 r6184  
    465465
    466466                // Get the response
    467                 $activity_data['bp_as_result'] = $response[1];
     467                if ( ! empty( $response[1] ) && ! is_wp_error( $response[1] ) )
     468                        $activity_data['bp_as_result'] = $response[1];
     469                else
     470                        $activity_data['bp_as_result'] = false;
    468471
    469472                // Perform a daily tidy up
Note: See TracChangeset for help on using the changeset viewer.