Skip to:
Content

BuddyPress.org

Changeset 5139


Ignore:
Timestamp:
09/10/2011 01:46:26 PM (10 years ago)
Author:
djpaul
Message:

Fix PHP notices in Group member functions. Fixes #3569, props sbrajesh

File:
1 edited

Legend:

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

    r4983 r5139  
    870870        global $wpdb, $bp;
    871871
     872        $pag_sql = $hidden_sql = $filter_sql = '';
     873
    872874        if ( $limit && $page )
    873875            $pag_sql = $wpdb->prepare( " LIMIT %d, %d", intval( ( $page - 1 ) * $limit), intval( $limit ) );
     
    890892        global $wpdb, $bp;
    891893
     894        $pag_sql = $hidden_sql = $filter_sql = '';
     895
    892896        if ( $limit && $page )
    893897            $pag_sql = $wpdb->prepare( " LIMIT %d, %d", intval( ( $page - 1 ) * $limit), intval( $limit ) );
     
    909913    function get_is_mod_of( $user_id, $limit = false, $page = false, $filter = false ) {
    910914        global $wpdb, $bp;
     915
     916        $pag_sql = $hidden_sql = $filter_sql = '';
    911917
    912918        if ( $limit && $page )
Note: See TracChangeset for help on using the changeset viewer.