Merge pull request #10489 from annando/notice

Fixes "Undefined index: nick"
This commit is contained in:
Hypolite Petovan 2021-07-13 21:00:30 -04:00 committed by GitHub
commit b1fde5e095
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2211,10 +2211,10 @@ class Contact
}
if ((!empty($ret['addr']) && ($ret['addr'] != $contact['addr'])) || (!empty($ret['alias']) && ($ret['alias'] != $contact['alias']))) {
$ret['uri-date'] = DateTimeFormat::utcNow();
$ret['uri-date'] = $updated;
}
if (($ret['name'] != $contact['name']) || ($ret['nick'] != $contact['nick'])) {
if ((!empty($ret['name']) && ($ret['name'] != $contact['name'])) || (!empty($ret['nick']) && ($ret['nick'] != $contact['nick']))) {
$ret['name-date'] = $updated;
}