From 201d5ac3646d409cc056609996446d0a703d87b2 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 23 Jun 2023 21:50:35 +0000 Subject: [PATCH] Fix warning "Undefined array key "alias"" --- src/Model/Contact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Contact.php b/src/Model/Contact.php index d079a4ef62..4ffaa672e0 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -2811,7 +2811,7 @@ class Contact } $update = false; - $guid = ($ret['guid'] ?? '') ?: Item::guidFromUri($ret['url'], $ret['baseurl'] ?? $ret['alias']); + $guid = ($ret['guid'] ?? '') ?: Item::guidFromUri($ret['url'], $ret['baseurl'] ?? $ret['alias'] ?? ''); // make sure to not overwrite existing values with blank entries except some technical fields $keep = ['batch', 'notify', 'poll', 'request', 'confirm', 'poco', 'baseurl'];