diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-08-20 22:29:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-20 22:29:20 +0200 |
commit | dd02920aedc63e89c8c8cf2e2c41344954bac08c (patch) | |
tree | ea3b700170e5b1a18aad4c7c99fcc501b47aef5a /lib | |
parent | 1dda6fb05b1f535e9916da7ff9381bc2b984d04a (diff) | |
parent | 17096adff981ab7317340948711bbe005e19515c (diff) | |
download | nextcloud-server-dd02920aedc63e89c8c8cf2e2c41344954bac08c.tar.gz nextcloud-server-dd02920aedc63e89c8c8cf2e2c41344954bac08c.zip |
Merge pull request #16811 from nextcloud/bugfix/16771/correctly-remove-apps-without-any-releases
Correctly remove apps without any releases
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; } |