Fix fetching contacts
This commit is contained in:
parent
b0086a49e2
commit
caf548e1a7
|
@ -211,12 +211,14 @@ class Contact
|
||||||
|
|
||||||
// Add internal fields
|
// Add internal fields
|
||||||
$removal = [];
|
$removal = [];
|
||||||
|
if (!empty($fields)) {
|
||||||
foreach (['id', 'updated', 'network'] as $internal) {
|
foreach (['id', 'updated', 'network'] as $internal) {
|
||||||
if (!in_array($internal, $fields)) {
|
if (!in_array($internal, $fields)) {
|
||||||
$fields[] = $internal;
|
$fields[] = $internal;
|
||||||
$removal[] = $internal;
|
$removal[] = $internal;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// We first try the nurl (http://server.tld/nick), most common case
|
// We first try the nurl (http://server.tld/nick), most common case
|
||||||
$options = ['order' => ['id']];
|
$options = ['order' => ['id']];
|
||||||
|
|
Loading…
Reference in a new issue