From 7b920bf840e859d92fe5ea8dac6fab76de4a2bce Mon Sep 17 00:00:00 2001 From: Jonas Rittershofer Date: Fri, 15 May 2020 17:49:53 +0200 Subject: [PATCH] Fix key-exists error Signed-off-by: Jonas Rittershofer --- lib/Controller/ApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php index a37f07f..e6790b2 100644 --- a/lib/Controller/ApiController.php +++ b/lib/Controller/ApiController.php @@ -214,7 +214,7 @@ class ApiController extends Controller { // Make sure we only store id try { - if ($keyValuePairs['access']) { + if (array_key_exists('access', $keyValuePairs)) { $keyValuePairs['access']['users'] = array_map(function (array $user): string { return $user['shareWith']; }, $keyValuePairs['access']['users']);