Changeset 9332
- Timestamp:
- 01/09/2015 07:31:32 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/bp-messages-classes.php
r9331 r9332 394 394 $sql = array(); 395 395 $sql['select'] = 'SELECT m.thread_id, MAX(m.date_sent) AS date_sent'; 396 $sql['from'] = "FROM {$bp->messages->table_name_recipients} r , {$bp->messages->table_name_messages} m";397 $sql['where'] = "WHERE m.thread_id = r.thread_id ANDr.is_deleted = 0 {$user_id_sql} {$sender_sql} {$type_sql} {$search_sql}";396 $sql['from'] = "FROM {$bp->messages->table_name_recipients} r INNER JOIN {$bp->messages->table_name_messages} m ON m.thread_id = r.thread_id"; 397 $sql['where'] = "WHERE r.is_deleted = 0 {$user_id_sql} {$sender_sql} {$type_sql} {$search_sql}"; 398 398 $sql['misc'] = "GROUP BY m.thread_id ORDER BY date_sent DESC {$pag_sql}"; 399 399
Note: See TracChangeset
for help on using the changeset viewer.