Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/04/2014 07:47:59 PM (11 years ago)
Author:
boonebgorges
Message:

Don't do a strict type check when deciding on bp_activity_add_user_favorite() return value

Since r8132, bp_activity_update_meta() has returned an integer value when
falling through to add_metadata(). Thus, we should have a more generous test
for whether the update has been successful. See #5399

Fixes #5515

File:
1 edited

Legend:

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

    r8177 r8237  
    428428
    429429    // Update activity meta counts
    430     if ( true === bp_activity_update_meta( $activity_id, 'favorite_count', $fav_count ) ) {
     430    if ( bp_activity_update_meta( $activity_id, 'favorite_count', $fav_count ) ) {
    431431
    432432        // Execute additional code
Note: See TracChangeset for help on using the changeset viewer.