Changeset 8619 for trunk/src/bp-messages/bp-messages-functions.php
- Timestamp:
- 07/15/2014 10:32:54 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-messages/bp-messages-functions.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/bp-messages-functions.php
r8618 r8619 201 201 $error = 0; 202 202 for ( $i = 0, $count = count( $thread_ids ); $i < $count; ++$i ) { 203 if ( ! $status = BP_Messages_Thread::delete( $thread_ids[$i]) ) {203 if ( ! BP_Messages_Thread::delete( $thread_ids[$i] ) ) { 204 204 $error = 1; 205 205 } 206 206 } 207 207 208 if ( ! empty( $error ) )208 if ( ! empty( $error ) ) { 209 209 return false; 210 } 210 211 211 212 do_action( 'messages_delete_thread', $thread_ids ); … … 213 214 return true; 214 215 } else { 215 if ( ! BP_Messages_Thread::delete( $thread_ids ) )216 if ( ! BP_Messages_Thread::delete( $thread_ids ) ) { 216 217 return false; 218 } 217 219 218 220 do_action( 'messages_delete_thread', $thread_ids ); … … 231 233 */ 232 234 function messages_check_thread_access( $thread_id, $user_id = 0 ) { 233 if ( empty( $user_id ) ) 235 if ( empty( $user_id ) ) { 234 236 $user_id = bp_loggedin_user_id(); 237 } 235 238 236 239 return BP_Messages_Thread::check_access( $thread_id, $user_id ); … … 295 298 */ 296 299 function messages_get_unread_count( $user_id = 0 ) { 297 if ( empty( $user_id ) ) 300 if ( empty( $user_id ) ) { 298 301 $user_id = bp_loggedin_user_id(); 302 } 299 303 300 304 return BP_Messages_Thread::get_inbox_count( $user_id );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)