diff options
-rw-r--r-- | lib/private/App/AppStore/Fetcher/AppFetcher.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/private/App/AppStore/Fetcher/AppFetcher.php b/lib/private/App/AppStore/Fetcher/AppFetcher.php index cf5839e4994..7e188f0c1f5 100644 --- a/lib/private/App/AppStore/Fetcher/AppFetcher.php +++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php @@ -106,6 +106,12 @@ class AppFetcher extends Fetcher { } } + if (empty($releases)) { + // Remove apps that don't have a matching release + $response['data'][$dataKey] = []; + continue; + } + // Get the highest version $versions = []; foreach($releases as $release) { @@ -129,7 +135,7 @@ class AppFetcher extends Fetcher { } } - $response['data'] = array_values($response['data']); + $response['data'] = array_values(array_filter($response['data'])); return $response; } |