• Hello,

    I started to receive the following :

    Notice: Undefined variable: item_id in /wp-content/plugins/bp-activity-share/public/class-bp-activity-share-public.php on line 256

    I replaced the line in question from :
    $share_count = bp_activity_get_meta( $item_id, ‘bp_share_activity_count’, true );

    To

    $share_count = isset($item_id) ? bp_activity_get_meta( $item_id, ‘bp_share_activity_count’, true ):0;

    Since the previous IF block was leaving from time to time the $item_id uninitialized .

    Would it be possible to please merge this into a future update ?

    Thank you,
    Adrian.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Notice: Undefined variable: item_id’ is closed to new replies.