Fixes "Undefined index: nick"

pull/10489/head
Michael 2021-07-12 06:25:48 +00:00
rodzic 07ef1edfd6
commit e151a2dc41
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -2211,10 +2211,10 @@ class Contact
} }
if ((!empty($ret['addr']) && ($ret['addr'] != $contact['addr'])) || (!empty($ret['alias']) && ($ret['alias'] != $contact['alias']))) { 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; $ret['name-date'] = $updated;
} }