Changeset 1538 for trunk/bp-messages/bp-messages-templatetags.php
- Timestamp:
- 06/10/2009 08:49:07 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-messages/bp-messages-templatetags.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-messages/bp-messages-templatetags.php
r1534 r1538 31 31 $this->total_thread_count = 0; 32 32 } else { 33 if ( !$max ) { 33 $total_notice_count = BP_Messages_Notice::get_total_notice_count(); 34 35 if ( !$max || $max >= (int)$total_notice_count ) { 34 36 if ( 'notices' == $this->box ) 35 $this->total_thread_count = BP_Messages_Notice::get_total_notice_count();37 $this->total_thread_count = (int)$total_notice_count; 36 38 else 37 $this->total_thread_count = BP_Messages_Thread::get_total_threads_for_user( $this->user_id, $this->box, $type );39 $this->total_thread_count = (int)BP_Messages_Thread::get_total_threads_for_user( $this->user_id, $this->box, $type ); 38 40 } else { 39 41 $this->total_thread_count = (int)$max;
Note: See TracChangeset
for help on using the changeset viewer.