mirror of
https://github.com/friendica/friendica
synced 2025-04-29 19:44:22 +02:00
Fix notice "undefined index: uri"
This commit is contained in:
parent
6354d7c81d
commit
0735a22cdd
2 changed files with 5 additions and 5 deletions
|
@ -124,7 +124,7 @@ class APContact
|
|||
$apcontact = DBA::selectFirst('apcontact', [], ['addr' => $url]);
|
||||
}
|
||||
|
||||
if (DBA::isResult($apcontact) && ($apcontact['updated'] > $ref_update) && !empty($apcontact['pubkey'])) {
|
||||
if (DBA::isResult($apcontact) && ($apcontact['updated'] > $ref_update) && !empty($apcontact['pubkey']) && !empty($apcontact['uri-id'])) {
|
||||
return $apcontact;
|
||||
}
|
||||
|
||||
|
@ -352,7 +352,7 @@ class APContact
|
|||
if (empty($apcontact['uuid'])) {
|
||||
$apcontact['uri-id'] = ItemURI::getIdByURI($apcontact['url']);
|
||||
} else {
|
||||
$apcontact['uri-id'] = ItemURI::insert(['uri' => $apcontact['uri'], 'guid' => $apcontact['uuid']]);
|
||||
$apcontact['uri-id'] = ItemURI::insert(['uri' => $apcontact['url'], 'guid' => $apcontact['uuid']]);
|
||||
}
|
||||
|
||||
$apcontact['updated'] = DateTimeFormat::utcNow();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue