Changeset 1538 for trunk/bp-forums/bp-forums-templatetags.php
- Timestamp:
- 06/10/2009 08:49:07 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-forums/bp-forums-templatetags.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/bp-forums-templatetags.php
r1448 r1538 31 31 $this->total_topic_count = 0; 32 32 } else { 33 if ( !$max ) 34 $this->total_topic_count = count( bp_forums_get_topics( $forum_id ) ); 33 $forum_count = count( bp_forums_get_topics( $forum_id ) ); 34 35 if ( !$max || $max >= $forum_count ) 36 $this->total_topic_count = $forum_count; 35 37 else 36 38 $this->total_topic_count = (int)$max; … … 395 397 $this->total_post_count = 0; 396 398 } else { 397 if ( !$max )399 if ( !$max || $max >= (int) $forum_template->topic->topic_posts ) 398 400 $this->total_post_count = (int) $forum_template->topic->topic_posts; 399 401 else
Note: See TracChangeset
for help on using the changeset viewer.