Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/24/2010 06:57:17 PM (14 years ago)
Author:
djpaul
Message:

Return correct count of friend requests, fixes #2762 (branch)

File:
1 edited

Legend:

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

    r3260 r3484  
    346346            $user_id = $bp->loggedin_user->id;
    347347
    348         return apply_filters( 'bp_friend_get_total_requests_count', (int) BP_Friends_Friendship::get_friend_user_ids( $user_id, true ) );
     348        return apply_filters( 'bp_friend_get_total_requests_count', count( BP_Friends_Friendship::get_friend_user_ids( $user_id, true ) ) );
    349349    }
    350350?>
Note: See TracChangeset for help on using the changeset viewer.