sforkowany z mirror/friendica
Fix fetching contacts
rodzic
b0086a49e2
commit
caf548e1a7
|
@ -211,10 +211,12 @@ class Contact
|
|||
|
||||
// Add internal fields
|
||||
$removal = [];
|
||||
foreach (['id', 'updated', 'network'] as $internal) {
|
||||
if (!in_array($internal, $fields)) {
|
||||
$fields[] = $internal;
|
||||
$removal[] = $internal;
|
||||
if (!empty($fields)) {
|
||||
foreach (['id', 'updated', 'network'] as $internal) {
|
||||
if (!in_array($internal, $fields)) {
|
||||
$fields[] = $internal;
|
||||
$removal[] = $internal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue