Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/19/2010 02:00:55 PM (14 years ago)
Author:
djpaul
Message:

Fixes some more PHP notices

File:
1 edited

Legend:

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

    r3520 r3542  
    8181        global $wpdb, $bp;
    8282
     83        $pag_sql = '';
    8384        if ( $limit && $page )
    8485            $pag_sql = $wpdb->prepare( " LIMIT %d, %d", intval( ( $page - 1 ) * $limit), intval( $limit ) );
    8586
     87        $type_sql = '';
    8688        if ( $type == 'unread' )
    8789            $type_sql = $wpdb->prepare( " AND r.unread_count != 0 " );
    88         else if ( $type == 'read' )
     90        elseif ( $type == 'read' )
    8991            $type_sql = $wpdb->prepare( " AND r.unread_count = 0 " );
    9092
Note: See TracChangeset for help on using the changeset viewer.