diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php index be4a48b..3bc51c4 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']);