]> git.mxchange.org Git - friendica.git/commitdiff
Fixes "Undefined index: nick"
authorMichael <heluecht@pirati.ca>
Mon, 12 Jul 2021 06:25:48 +0000 (06:25 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 12 Jul 2021 06:25:48 +0000 (06:25 +0000)
src/Model/Contact.php

index a92a901cf5e6eea0cbb01c580196f8b1cab67700..0e3de02d67374cbc56ab87fc85bcfd8d09657f99 100644 (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;
                }