Skip to:
Content

BuddyPress.org

Changeset 1562


Ignore:
Timestamp:
06/22/2009 08:07:01 PM (15 years ago)
Author:
apeatling
Message:

Fixes #800

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.0/bp-messages/bp-messages-ajax.php

    r1518 r1562  
    2929function messages_ajax_autocomplete_results() {
    3030    global $bp;
     31   
     32    $friends = false;
    3133
    3234    // Get the friend ids based on the search terms
    33     $friends = apply_filters( 'bp_friends_autocomplete_list', friends_search_friends( $_GET['q'], $bp->loggedin_user->id, $_GET['limit'], 1 ), $_GET['q'], $_GET['limit'] );
     35    if ( function_exists( 'friends_search_friends' ) )
     36        $friends = friends_search_friends( $_GET['q'], $bp->loggedin_user->id, $_GET['limit'], 1 );
    3437   
     38    $friends = apply_filters( 'bp_friends_autocomplete_list', $friends, $_GET['q'], $_GET['limit'] );
     39
    3540    if ( $friends['friends'] ) {
    3641        foreach ( $friends['friends'] as $user_id ) {
Note: See TracChangeset for help on using the changeset viewer.