1
1
Fork 0

Update src/Model/Contact.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
Michael Vogel 2020-07-30 22:39:09 +02:00 committed by GitHub
parent 113e8d910b
commit 43b4841fa6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3006,7 +3006,7 @@ class Contact
return array_slice($contacts, $start, $limit); return array_slice($contacts, $start, $limit);
} }
// The query returns contacts where contacts interacted with who also interacted with the given user. // The query returns contacts where contacts interacted with whom also interacted with the given user.
// Contacts who already are in the user's contact table are ignored. // Contacts who already are in the user's contact table are ignored.
$results = DBA::select('contact', [], $results = DBA::select('contact', [],
["`id` IN (SELECT `cid` FROM `contact-relation` WHERE `relation-cid` IN ["`id` IN (SELECT `cid` FROM `contact-relation` WHERE `relation-cid` IN