Skip to:
Content

BuddyPress.org

Changeset 3092


Ignore:
Timestamp:
06/27/2010 06:40:48 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Fix #2116 props edelwater

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-core/bp-core-templatetags.php

    r3087 r3092  
    124124    $search_terms = false;
    125125
    126     /* User filtering */
     126    // User filtering
    127127    if ( !empty( $bp->displayed_user->id ) )
    128128        $user_id = $bp->displayed_user->id;
    129129
    130     /* Pass a filter if ?s= is set. */
    131     if ( $_REQUEST['s'] )
     130    // Pass a filter if ?s= is set.
     131    if ( isset( $_REQUEST['s'] ) && !empty( $_REQUEST['s'] ) )
    132132        $search_terms = $_REQUEST['s'];
    133133
     
    155155    }
    156156
    157     /* Make sure we return no members if we looking at friendship requests and there are none. */
     157    // Make sure we return no members if we looking at friendship requests and there are none.
    158158    if ( empty( $include ) && $bp->friends->slug == $bp->current_component && 'requests' == $bp->current_action )
    159159        return false;
Note: See TracChangeset for help on using the changeset viewer.