diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-11-12 15:04:07 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-11-13 14:56:20 +0300 |
commit | f660ba26ddce3ea723f2d88057c18ba9f49dba67 (patch) | |
tree | 8b48c8ee9285b1ce34e9ed9c715915930f99bd76 /lib | |
parent | f7296a4861aaff8d5736609e6eed3a7206995808 (diff) |
Do not fail if capabilities have not been fetched for the built-in CODE server
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Service/CapabilitiesService.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Service/CapabilitiesService.php b/lib/Service/CapabilitiesService.php index d2111dae..9d6583b0 100644 --- a/lib/Service/CapabilitiesService.php +++ b/lib/Service/CapabilitiesService.php @@ -60,7 +60,7 @@ class CapabilitiesService { $CODEAppID = $isARM64 ? 'richdocumentscode_arm64' : 'richdocumentscode'; $isCODEInstalled = $this->appManager->isEnabledForUser($CODEAppID); $isCODEEnabled = strpos($this->config->getAppValue('richdocuments', 'wopi_url'), 'proxy.php?req=') !== false; - $shouldRecheckCODECapabilities = $isCODEInstalled && $isCODEEnabled && count($this->capabilities) === 0; + $shouldRecheckCODECapabilities = $isCODEInstalled && $isCODEEnabled && ($this->capabilities === null || count($this->capabilities) === 0); if($this->capabilities === null || $shouldRecheckCODECapabilities) { $this->refetch(); } |