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-messages/classes/class-bp-messages-box-template.php

    r12426 r12602  
    163163                        ) );
    164164
    165                         $this->threads            = $threads['threads'];
    166                         $this->total_thread_count = $threads['total'];
     165                        $this->threads            = isset( $threads['threads'] ) ? $threads['threads'] : array();
     166                        $this->total_thread_count = isset( $threads['total'] ) ? $threads['total'] : 0;
    167167                }
    168168
Note: See TracChangeset for help on using the changeset viewer.