Changeset 2787671
- Timestamp:
- 09/20/2022 01:47:54 PM (3 years ago)
- Location:
- prixchat
- Files:
-
- 2 edited
-
tags/1.0.0/src/class-peer.php (modified) (1 diff)
-
trunk/src/class-peer.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
prixchat/tags/1.0.0/src/class-peer.php
r2787666 r2787671 152 152 public static function get_unread_count( $user_id ) { 153 153 global $wpdb; 154 154 155 155 $query = "SELECT 156 156 P.conversation_id, 157 157 count(*) as total_unread 158 158 FROM 159 ` wp_prixchat_messages` M,160 ` wp_prixchat_peers` P159 `{$wpdb->prefix}prixchat_messages` M, 160 `{$wpdb->prefix}prixchat_peers` P 161 161 WHERE P.user_id = %d 162 162 AND M.conversation_id = P.conversation_id -
prixchat/trunk/src/class-peer.php
r2787666 r2787671 152 152 public static function get_unread_count( $user_id ) { 153 153 global $wpdb; 154 154 155 155 $query = "SELECT 156 156 P.conversation_id, 157 157 count(*) as total_unread 158 158 FROM 159 ` wp_prixchat_messages` M,160 ` wp_prixchat_peers` P159 `{$wpdb->prefix}prixchat_messages` M, 160 `{$wpdb->prefix}prixchat_peers` P 161 161 WHERE P.user_id = %d 162 162 AND M.conversation_id = P.conversation_id
Note: See TracChangeset
for help on using the changeset viewer.