Fix tests

This commit is contained in:
Michael 2021-10-04 06:26:41 +00:00
parent 43a17b6129
commit 126aa6f148
2 changed files with 59 additions and 55 deletions

View file

@ -2190,7 +2190,7 @@ class Contact
}
$update = false;
$guid = $ret['guid'] ?: Item::guidFromUri($ret['url'], parse_url($ret['url'], PHP_URL_HOST));
$guid = ($ret['guid'] ?? '') ?: Item::guidFromUri($ret['url'], parse_url($ret['url'], PHP_URL_HOST));
// make sure to not overwrite existing values with blank entries except some technical fields
$keep = ['batch', 'notify', 'poll', 'request', 'confirm', 'poco', 'baseurl'];