]> git.mxchange.org Git - friendica.git/commitdiff
Fix PHPStan error
authorArt4 <art4@wlabs.de>
Wed, 25 Dec 2024 18:37:13 +0000 (18:37 +0000)
committerArt4 <art4@wlabs.de>
Wed, 25 Dec 2024 18:37:13 +0000 (18:37 +0000)
src/Model/APContact.php

index 9042f3e31916d612cc2012cbf2a09924bfadeb79..bfb80686b4f1d47b43ed314ed1353fdf558b0970 100644 (file)
@@ -164,6 +164,8 @@ class APContact
                        DI::cache()->set($cachekey, System::callstack(20), Duration::FIVE_MINUTES);
                }
 
+               $local_owner = [];
+
                if (DI::baseUrl()->isLocalUrl($url) && ($local_uid = User::getIdForURL($url))) {
                        try {
                                $data = Transmitter::getProfile($local_uid);