Only fetch the gsid when it had been empty before
This commit is contained in:
parent
e27915a819
commit
21ab11ac18
|
@ -291,8 +291,10 @@ class APContact
|
|||
$apcontact['baseurl'] = null;
|
||||
}
|
||||
|
||||
if (!empty($apcontact['baseurl'])) {
|
||||
if (!empty($apcontact['baseurl']) && empty($fetched_contact['gsid'])) {
|
||||
$apcontact['gsid'] = GServer::getID($apcontact['baseurl']);
|
||||
} elseif (!empty($fetched_contact['gsid'])) {
|
||||
$apcontact['gsid'] = $fetched_contact['gsid'];
|
||||
}
|
||||
|
||||
if ($apcontact['url'] == $apcontact['alias']) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user