Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/28/2020 09:21:09 PM (6 years ago)
Author:
boonebgorges
Message:

isset() checks for a variety of variable references.

This helps to avoid PHP notices in 7.4+.

See #8264.

File:
1 edited

Legend:

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

    r12307 r12602  
    234234                                        $notification_object->href    = bp_loggedin_user_domain();
    235235                                } else {
    236                                         $notification_object->content = $content['text'];
    237                                         $notification_object->href    = $content['link'];
     236                                        $notification_object->content = isset( $content['text'] ) ? $content['text'] : '';
     237                                        $notification_object->href    = isset( $content['link'] ) ? $content['link'] : '';
    238238                                }
    239239
Note: See TracChangeset for help on using the changeset viewer.