Use INNER for group_member join

This commit is contained in:
Hypolite Petovan 2017-12-15 08:44:00 -05:00
parent c8c7ff2a2e
commit 868a84c5cc

View file

@ -606,7 +606,7 @@ class Contact extends BaseObject
AND `id` NOT IN ( AND `id` NOT IN (
SELECT DISTINCT(`contact-id`) SELECT DISTINCT(`contact-id`)
FROM `group_member` FROM `group_member`
JOIN `group` ON `group`.`id` = `group_member`.`gid` INNER JOIN `group` ON `group`.`id` = `group_member`.`gid`
WHERE `group`.`uid` = %d WHERE `group`.`uid` = %d
) )
LIMIT %d, %d", intval($uid), intval($uid), intval($start), intval($count) LIMIT %d, %d", intval($uid), intval($uid), intval($start), intval($count)