Changeset 4770 for trunk/bp-themes/bp-default/_inc/ajax.php
- Timestamp:
- 07/21/2011 10:27:09 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/_inc/ajax.php
r4710 r4770 559 559 $thread_ids = explode( ',', $_POST['thread_ids'] ); 560 560 561 for ( $i = 0 ; $i < count($thread_ids); $i++) {561 for ( $i = 0, $count = count( $thread_ids ); $i < $count; ++$i ) { 562 562 BP_Messages_Thread::mark_as_unread($thread_ids[$i]); 563 563 } … … 575 575 $thread_ids = explode( ',', $_POST['thread_ids'] ); 576 576 577 for ( $i = 0 ; $i < count($thread_ids); $i++) {577 for ( $i = 0, $count = count( $thread_ids ); $i < $count; ++$i ) { 578 578 BP_Messages_Thread::mark_as_read($thread_ids[$i]); 579 579 } … … 591 591 $thread_ids = explode( ',', $_POST['thread_ids'] ); 592 592 593 for ( $i = 0 ; $i < count($thread_ids); $i++)593 for ( $i = 0, $count = count( $thread_ids ); $i < $count; ++$i ) 594 594 BP_Messages_Thread::delete($thread_ids[$i]); 595 595 596 _e( 'Messages deleted.', 'buddypress');596 _e( 'Messages deleted.', 'buddypress' ); 597 597 } 598 598 }
Note: See TracChangeset
for help on using the changeset viewer.