Skip to:
Content

BuddyPress.org

Changeset 3433


Ignore:
Timestamp:
11/16/2010 10:55:54 PM (14 years ago)
Author:
djpaul
Message:

Fixed two WP_DEBUG warnings.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-catchuri.php

    r3358 r3433  
    222222    global $post, $bp, $wpdb, $wp_query, $bp_unfiltered_uri, $bp_unfiltered_uri_offset;
    223223
     224    if ( !isset( $bp_unfiltered_uri[$bp_unfiltered_uri_offset] ) )
     225        return false;
     226
    224227    // Determine if the root object WP page exists for this request (TODO: is there an API function for this?
    225228    if ( !$page_exists = $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM {$wpdb->posts} WHERE post_name = %s", $bp_unfiltered_uri[$bp_unfiltered_uri_offset] ) ) )
  • trunk/bp-groups/bp-groups-classes.php

    r3375 r3433  
    348348        /* Populate some extra information instead of querying each time in the loop */
    349349        if ( !empty( $populate_extras ) ) {
     350            $group_ids = array();
    350351            foreach ( (array)$paged_groups as $group ) $group_ids[] = $group->id;
    351352            $group_ids = $wpdb->escape( join( ',', (array)$group_ids ) );
Note: See TracChangeset for help on using the changeset viewer.