aboutsummaryrefslogtreecommitdiffhomepage
path: root/misc/get_remote_object_authenticated.php
diff options
context:
space:
mode:
Diffstat (limited to 'misc/get_remote_object_authenticated.php')
-rw-r--r--misc/get_remote_object_authenticated.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/get_remote_object_authenticated.php b/misc/get_remote_object_authenticated.php
index 3c67005..9f2db43 100644
--- a/misc/get_remote_object_authenticated.php
+++ b/misc/get_remote_object_authenticated.php
@@ -25,7 +25,7 @@ function get_remote_object_authenticated(string $uri, bool $dontLookUpInstance =
$instance = Instance::findByHostname($remoteHost);
}
- if ($instance?->auth?->outboundToken == null) {
+ if (!isset($instance->auth->outboundToken) || $instance->auth->outboundToken == null) {
// hopefully we can make the request anyway?
$context = stream_context_create(['http' => ['method' => $method]]);
$resp = file_get_contents($uri);