From: Michael Date: Tue, 25 May 2021 13:11:23 +0000 (+0000) Subject: Avoid notices because of empty fields X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=09f29cd577f0d9ef150a609b2870380af71882a2;p=friendica.git Avoid notices because of empty fields --- diff --git a/src/Model/APContact.php b/src/Model/APContact.php index 28bb31c83d..8795b22aa5 100644 --- a/src/Model/APContact.php +++ b/src/Model/APContact.php @@ -361,7 +361,7 @@ class APContact Logger::info('Updated profile', ['url' => $url]); - return $apcontact; + return DBA::selectFirst('apcontact', [], ['url' => $apcontact['url']]) ?: []; } /**