Skip to:
Content

BuddyPress.org

Changeset 7706


Ignore:
Timestamp:
12/18/2013 08:08:11 PM (11 years ago)
Author:
djpaul
Message:

Notifications component: fix a PHP Notice relating to an unset is_new variable in BP_Notifications_Notification->get_where_sql()

Fixes unit tests for some environments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-notifications/bp-notifications-classes.php

    r7695 r7706  
    318318        if ( ! empty( $args['is_new'] ) ) {
    319319            $where_conditions['is_new'] = "is_new = 1";
    320         } elseif ( ( 0 === $args['is_new'] ) || ( false === $args['is_new'] ) ) {
     320        } elseif ( isset( $args['is_new'] ) && ( 0 === $args['is_new'] || false === $args['is_new'] ) ) {
    321321            $where_conditions['is_new'] = "is_new = 0";
    322322        }
Note: See TracChangeset for help on using the changeset viewer.