Merge pull request #392 from nextcloud/fix/access_key
Fix key-exists error
This commit is contained in:
commit
9c7fae103d
|
@ -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']);
|
||||
|
|
Loading…
Reference in a new issue