Skip to:
Content

BuddyPress.org

Changeset 8784


Ignore:
Timestamp:
08/10/2014 06:34:59 PM (5 years ago)
Author:
johnjamesjacoby
Message:

In bp_activity_user_can_delete() check if user_id is set before comparing current user ID against it, to prevent a possible debug notice if empty $activity parameter is passed.

File:
1 edited

Legend:

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

    r8781 r8784  
    16601660        // quite powerful, because doing so also deletes all comments to that
    16611661        // activity item. We should revisit this eventually.
    1662         if ( $activity->user_id === bp_loggedin_user_id() ) {
     1662        if ( isset( $activity->user_id ) && ( $activity->user_id === bp_loggedin_user_id() ) ) {
    16631663            $can_delete = true;
    16641664        }
Note: See TracChangeset for help on using the changeset viewer.