diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-10-23 15:46:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-23 15:46:36 +0300 |
commit | 2b651cc0220629f7898440d1b38b622c524f7931 (patch) | |
tree | 8e3cbd751a6d5cbf50271e231f13132f4f39e20f | |
parent | f4e4a85fcfc8ee25d4d398f5fa8aa657d4eaf08a (diff) | |
parent | 7d7ef1d2e68310cc8e0988a926406cddd241c257 (diff) |
Merge pull request #29400 from nextcloud/fix/noid/undef-index-error
fixes an undefined index when getAccessList returns an empty array
-rw-r--r-- | apps/workflowengine/lib/Entity/File.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/workflowengine/lib/Entity/File.php b/apps/workflowengine/lib/Entity/File.php index 2c8701f0378..3f09fcd24a1 100644 --- a/apps/workflowengine/lib/Entity/File.php +++ b/apps/workflowengine/lib/Entity/File.php @@ -141,7 +141,7 @@ class File implements IEntity, IDisplayText, IUrl, IIcon, IContextPortation { return true; } $acl = $this->shareManager->getAccessList($node, true, true); - return array_key_exists($uid, $acl['users']); + return isset($acl['users']) && array_key_exists($uid, $acl['users']); } catch (NotFoundException $e) { return false; } |