Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/01/2016 04:59:31 PM (8 years ago)
Author:
r-a-y
Message:

Activity: Cast activity properties as integers where appropriate.

Props DJPaul, r-a-y.

See #6977.

File:
1 edited

Legend:

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

    r10833 r10853  
    170170
    171171    // Get activity object.
    172     $activity  = new BP_Activity_Activity( (int) $activity_id );
     172    $activity  = new BP_Activity_Activity( $activity_id );
    173173
    174174    // Try to find mentions.
     
    25572557
    25582558    // Check to see if the parent activity is hidden, and if so, hide this comment publicly.
    2559     $is_hidden = ( (int) $activity->hide_sitewide ) ? 1 : 0;
     2559    $is_hidden = $activity->hide_sitewide ? 1 : 0;
    25602560
    25612561    /**
Note: See TracChangeset for help on using the changeset viewer.