summaryrefslogtreecommitdiffstats
path: root/lib/private/App
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-03-20 12:15:52 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-03-20 15:16:13 +0100
commit95c9e0edd216e7a0afd16da27492ec833728bdb2 (patch)
treeed01aaa54b00316b79776830c0d59f23886437d1 /lib/private/App
parent769cb629aebd368fbddd6ea04067fdcfaa262e3e (diff)
downloadnextcloud-server-95c9e0edd216e7a0afd16da27492ec833728bdb2.tar.gz
nextcloud-server-95c9e0edd216e7a0afd16da27492ec833728bdb2.zip
Remove apps from the list which have no release at all
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/App')
-rw-r--r--lib/private/App/AppStore/Fetcher/AppFetcher.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/App/AppStore/Fetcher/AppFetcher.php b/lib/private/App/AppStore/Fetcher/AppFetcher.php
index d8c505757c8..4067e03a818 100644
--- a/lib/private/App/AppStore/Fetcher/AppFetcher.php
+++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php
@@ -103,6 +103,11 @@ class AppFetcher extends Fetcher {
}
}
+ if (empty($releases)) {
+ // Remove apps that don't have a matching release
+ continue;
+ }
+
// Get the highest version
$versions = [];
foreach($releases as $release) {