Skip to content

Commit c352f01

Browse files
authored
Merge pull request #44410 from nextcloud/fix/fetcher-on-null
fix(AppStore\Fetcher): Ensure `get` returns an array
2 parents 31794ad + 63f1966 commit c352f01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public function get($allowUnstable = false) {
181181
try {
182182
$responseJson = $this->fetch($ETag, $content, $allowUnstable);
183183

184-
if (empty($responseJson)) {
184+
if (empty($responseJson) || empty($responseJson['data'])) {
185185
return [];
186186
}
187187

0 commit comments

Comments
 (0)