Skip to:
Content

BuddyPress.org

Ticket #5315: buddypress.patch

File buddypress.patch, 801 bytes (added by rodrigorznd, 11 years ago)
  • bp-notifications/bp-notifications-classes.php

     
    315315                }
    316316
    317317                // is_new
    318                 if ( ! empty( $args['is_new'] ) ) {
    319                         $where_conditions['is_new'] = "is_new = 1";
    320                 } elseif ( ( 0 === $args['is_new'] ) || ( false === $args['is_new'] ) ) {
    321                         $where_conditions['is_new'] = "is_new = 0";
     318                if ( $args['is_new'] !== 'both' ) {
     319                        if ( ! empty( $args['is_new'] ) ) {
     320                                $where_conditions['is_new'] = "is_new = 1";
     321                        } elseif ( ( 0 === $args['is_new'] ) || ( false === $args['is_new'] ) ) {
     322                                $where_conditions['is_new'] = "is_new = 0";
     323                        }
    322324                }
    323325
    324326                // search_terms