]> git.mxchange.org Git - friendica.git/commitdiff
Avoid notices because of empty fields
authorMichael <heluecht@pirati.ca>
Tue, 25 May 2021 13:11:23 +0000 (13:11 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 25 May 2021 13:11:23 +0000 (13:11 +0000)
src/Model/APContact.php

index 28bb31c83d94c5f61ff6ea670da27f4270142634..8795b22aa506f2e74d84c0373e00375bea21c509 100644 (file)
@@ -361,7 +361,7 @@ class APContact
 
                Logger::info('Updated profile', ['url' => $url]);
 
-               return $apcontact;
+               return DBA::selectFirst('apcontact', [], ['url' => $apcontact['url']]) ?: [];
        }
 
        /**