Skip to content

Commit dd02920

Browse files
authored
Merge pull request #16811 from nextcloud/bugfix/16771/correctly-remove-apps-without-any-releases
Correctly remove apps without any releases
2 parents 1dda6fb + 17096ad commit dd02920

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/private/App/AppStore/Fetcher/AppFetcher.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ protected function fetch($ETag, $content) {
115115

116116
if (empty($releases)) {
117117
// Remove apps that don't have a matching release
118+
$response['data'][$dataKey] = [];
118119
continue;
119120
}
120121

@@ -136,7 +137,7 @@ protected function fetch($ETag, $content) {
136137
}
137138
}
138139

139-
$response['data'] = array_values($response['data']);
140+
$response['data'] = array_values(array_filter($response['data']));
140141
return $response;
141142
}
142143

0 commit comments

Comments
 (0)