Ver Fonte

Merge pull request #44410 from nextcloud/fix/fetcher-on-null

fix(AppStore\Fetcher): Ensure `get` returns an array
Ferdinand Thiessen há 2 meses atrás
pai
commit
c352f0198b
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      lib/private/App/AppStore/Fetcher/Fetcher.php

+ 1 - 1
lib/private/App/AppStore/Fetcher/Fetcher.php

@@ -181,7 +181,7 @@ abstract class Fetcher {
 		try {
 			$responseJson = $this->fetch($ETag, $content, $allowUnstable);
 
-			if (empty($responseJson)) {
+			if (empty($responseJson) || empty($responseJson['data'])) {
 				return [];
 			}