diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-01-09 12:50:53 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-01-09 12:50:53 +0300 |
commit | 1a72c6a8ac75928df90ee70330d7930dc770cdd9 (patch) | |
tree | 3c2877c1602359a46614dba1837b5c8d3038a316 /lib | |
parent | 441e29f55bc33dbfadc356f6ebbd326e0d82e284 (diff) |
Only run query against collabora capabilities endpoint if a remote host is configured
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Capabilities.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Capabilities.php b/lib/Capabilities.php index 73163238..439930c0 100644 --- a/lib/Capabilities.php +++ b/lib/Capabilities.php @@ -97,6 +97,9 @@ class Capabilities implements ICapability { $file = $this->appData->newFile('capabilities.json'); } $remoteHost = $this->config->getAppValue('richdocuments', 'wopi_url'); + if ($remoteHost === '') { + return []; + } $capabilitiesEndpoint = $remoteHost . '/hosting/capabilities'; $client = $this->clientService->newClient(); |