Skip to content

Commit

Permalink
Merge pull request #16811 from nextcloud/bugfix/16771/correctly-remov…
Browse files Browse the repository at this point in the history
…e-apps-without-any-releases

Correctly remove apps without any releases
  • Loading branch information
rullzer authored Aug 20, 2019
2 parents 1dda6fb + 17096ad commit dd02920
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/private/App/AppStore/Fetcher/AppFetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ protected function fetch($ETag, $content) {

if (empty($releases)) {
// Remove apps that don't have a matching release
$response['data'][$dataKey] = [];
continue;
}

Expand All @@ -136,7 +137,7 @@ protected function fetch($ETag, $content) {
}
}

$response['data'] = array_values($response['data']);
$response['data'] = array_values(array_filter($response['data']));
return $response;
}

Expand Down

0 comments on commit dd02920

Please sign in to comment.