aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2021-10-24 01:25:57 +0200
committerGitHub <noreply@github.com>2021-10-24 01:25:57 +0200
commit7fe15c719ccd73ff18a01eb1e7b57bcdee27618b (patch)
tree21795a6de95f8a33157c912823bbbf4f26f29770 /apps
parent629225c30a4335e95c4199b00846eb2e26ffab5f (diff)
parent5145675d43082d18b790eda1a85d666276ab071b (diff)
downloadnextcloud-server-7fe15c719ccd73ff18a01eb1e7b57bcdee27618b.tar.gz
nextcloud-server-7fe15c719ccd73ff18a01eb1e7b57bcdee27618b.zip
Merge pull request #29419 from nextcloud/backport/29400/stable22
[stable22] fixes an undefined index when getAccessList returns an empty array
Diffstat (limited to 'apps')
-rw-r--r--apps/workflowengine/lib/Entity/File.php2
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;
}