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

    r1449 r1538  
    222222        }
    223223       
    224         if ( !$max )
     224        if ( !$max || $max >= (int)$this->blogs['count'] )
    225225            $this->total_blog_count = (int)$this->blogs['count'];
    226226        else
     
    398398        }
    399399       
    400         if ( !$max )
     400        if ( !$max || $max >= (int)$this->posts['count'] )
    401401            $this->total_post_count = (int)$this->posts['count'];
    402402        else
     
    832832        }
    833833       
    834         if ( !$max )
     834        if ( !$max || $max >= (int)$this->comments['count'] )
    835835            $this->total_comment_count = (int)$this->comments['count'];
    836836        else
     
    10851085        }
    10861086       
    1087         if ( !$max )
     1087        if ( !$max || $max >= (int)$this->blogs['total'] )
    10881088            $this->total_blog_count = (int)$this->blogs['total'];
    10891089        else
Note: See TracChangeset for help on using the changeset viewer.