aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/App
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-08-20 14:47:46 +0200
committerJoas Schilling <coding@schilljs.com>2019-08-20 14:47:46 +0200
commit17096adff981ab7317340948711bbe005e19515c (patch)
tree73adf068ef9f61def96458264e73131dbc99d0d5 /lib/private/App
parent650e4f9f4c44cf55c28d0e6f7be988056cc6897c (diff)
downloadnextcloud-server-17096adff981ab7317340948711bbe005e19515c.tar.gz
nextcloud-server-17096adff981ab7317340948711bbe005e19515c.zip
Correctly remove apps without any releases
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/App')
-rw-r--r--lib/private/App/AppStore/Fetcher/AppFetcher.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/App/AppStore/Fetcher/AppFetcher.php b/lib/private/App/AppStore/Fetcher/AppFetcher.php
index ea69c37f32c..badc4edb444 100644
--- a/lib/private/App/AppStore/Fetcher/AppFetcher.php
+++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php
@@ -115,6 +115,7 @@ class AppFetcher extends Fetcher {
if (empty($releases)) {
// Remove apps that don't have a matching release
+ $response['data'][$dataKey] = [];
continue;
}
@@ -136,7 +137,7 @@ class AppFetcher extends Fetcher {
}
}
- $response['data'] = array_values($response['data']);
+ $response['data'] = array_values(array_filter($response['data']));
return $response;
}