diff options
author | Joas Schilling <coding@schilljs.com> | 2019-08-20 14:47:46 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-08-20 14:47:46 +0200 |
commit | 17096adff981ab7317340948711bbe005e19515c (patch) | |
tree | 73adf068ef9f61def96458264e73131dbc99d0d5 /lib | |
parent | 650e4f9f4c44cf55c28d0e6f7be988056cc6897c (diff) | |
download | nextcloud-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')
-rw-r--r-- | lib/private/App/AppStore/Fetcher/AppFetcher.php | 3 |
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; } |