summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/OCS/DiscoveryService.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/OCS/DiscoveryService.php b/lib/private/OCS/DiscoveryService.php
index 53b4d13e797..016331e908f 100644
--- a/lib/private/OCS/DiscoveryService.php
+++ b/lib/private/OCS/DiscoveryService.php
@@ -65,7 +65,10 @@ class DiscoveryService implements IDiscoveryService {
// Check the cache first
$cacheData = $this->cache->get($remote . '#' . $service);
if($cacheData) {
- return json_decode($cacheData, true);
+ $data = json_decode($cacheData, true);
+ if (\is_array($data)) {
+ return $data;
+ }
}
$discoveredServices = [];