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-activity/bp-activity-templatetags.php

    r1532 r1538  
    3434            $this->activities = bp_activity_get_friends_activity( $user_id, $max, $timeframe, false, $this->pag_num, $this->pag_page );
    3535       
    36         if ( !$max )
     36        if ( !$max || $max >= (int)$this->activities['total'] )
    3737            $this->total_activity_count = (int)$this->activities['total'];
    3838        else
Note: See TracChangeset for help on using the changeset viewer.