Fix PHPStan error

This commit is contained in:
Art4 2024-12-25 18:37:13 +00:00
parent d55830902b
commit 530a93794f

View file

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