Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/10/2009 08:49:07 PM (17 years ago)
Author:
apeatling
Message:

Fixing bug where pagination links would break when the max value was more than the total number of items being returned.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends/bp-friends-templatetags.php

    r1473 r1538  
    4747            $this->friendship_count = count($this->friendships);
    4848        } else {
    49             if ( !$max )
     49            if ( !$max || $max >= (int)$this->friendships['total'] )
    5050                $this->total_friend_count = (int)$this->friendships['total'];
    5151            else
Note: See TracChangeset for help on using the changeset viewer.