summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-08-20 22:29:20 +0200
committerGitHub <noreply@github.com>2019-08-20 22:29:20 +0200
commitdd02920aedc63e89c8c8cf2e2c41344954bac08c (patch)
treeea3b700170e5b1a18aad4c7c99fcc501b47aef5a /lib
parent1dda6fb05b1f535e9916da7ff9381bc2b984d04a (diff)
parent17096adff981ab7317340948711bbe005e19515c (diff)
downloadnextcloud-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.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;
}