]> source.dussan.org Git - nextcloud-server.git/commit
fix(AppStore\Fetcher): Ensure `get` returns an array 44410/head
authorFerdinand Thiessen <opensource@fthiessen.de>
Fri, 22 Mar 2024 14:01:16 +0000 (15:01 +0100)
committerFerdinand Thiessen <opensource@fthiessen.de>
Fri, 22 Mar 2024 14:01:16 +0000 (15:01 +0100)
commit63f19661d2bc4c111ad21df15ad57174d0fa2403
tree531b7954de244898bfba3e9279f055bdc31a5a33
parent4121b841de5cdeb204c166f8f23f1621c00a9102
fix(AppStore\Fetcher): Ensure `get` returns an array

When fetch fails and the `data` prop contains null (e.g. `json_decode` failed),
then we should return an empty array instead of null.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
lib/private/App/AppStore/Fetcher/Fetcher.php