-/*
-
- $condition = ["`nurl` IN (SELECT `nurl` FROM `contact` WHERE `id` = ?) AND `uid` != 0 AND NOT `blocked` AND `rel` IN (?, ?)",
- $parent['owner-id'], Contact::SHARING, Contact::FRIEND];
-
- $contacts = DBA::select('contact', ['uid'], $condition);
-
- while ($contact = DBA::fetch($contacts)) {
- $users[$contact['uid']] = $contact['uid'];
- }
-
- DBA::close($contacts);
-
- // And the same with the alias in the user contacts
- $condition = ["`alias` IN (SELECT `url` FROM `contact` WHERE `id` = ?) AND `uid` != 0 AND NOT `blocked` AND `rel` IN (?, ?)",
- $parent['owner-id'], Contact::SHARING, Contact::FRIEND];
-
- $contacts = DBA::select('contact', ['uid'], $condition);