- Timestamp:
- 06/16/2015 10:48:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/classes/class-bp-messages-thread.php
r9928 r9948 461 461 } 462 462 463 if ( ! empty( $r['user_id'] ) ) { 464 if ( 'sentbox' == $r['box'] ) { 463 $r['user_id'] = (int) $r['user_id']; 464 465 switch ( $r['box'] ) { 466 case 'sentbox' : 465 467 $user_id_sql = 'AND ' . $wpdb->prepare( 'm.sender_id = %d', $r['user_id'] ); 466 $sender_sql = ' AND m.sender_id = r.user_id'; 467 } else { 468 $sender_sql = 'AND m.sender_id = r.user_id'; 469 break; 470 471 case 'inbox' : 472 default : 468 473 $user_id_sql = 'AND ' . $wpdb->prepare( 'r.user_id = %d', $r['user_id'] ); 469 $sender_sql = ' 470 }474 $sender_sql = 'AND r.sender_only = 0'; 475 break; 471 476 } 472 477
Note: See TracChangeset
for help on using the changeset viewer.