Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Correctly remove apps without any releases
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen authored and Backportbot committed Aug 20, 2019
commit 313e98437d61afe03bd4edfd68a2bdaedee5fa0c
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