Skip to content

Commit

Permalink
[PROD-5521] Fixed undefined warning error
Browse files Browse the repository at this point in the history
  • Loading branch information
bb-yudhisthir committed Jul 14, 2023
1 parent 3925323 commit 8eb7e8b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ function bp_nouveau_notifications_register_filter( $args = array() ) {
*/
function bp_nouveau_notifications_get_filters( $id = '' ) {
$bp_nouveau = bp_nouveau();
if ( ! isset( $bp_nouveau->notifications->filters ) ) {
return false;
}

// Get all filters
if ( empty( $id ) ) {
Expand Down

0 comments on commit 8eb7e8b

Please sign in to comment.