Skip to content

Commit

Permalink
Check if users is set
Browse files Browse the repository at this point in the history
Signed-off-by: Git'Fellow <[email protected]>

Fix psalm

Signed-off-by: Git'Fellow <[email protected]>

Use empty array if array is unset

Signed-off-by: Git'Fellow <[email protected]>
  • Loading branch information
solracsf committed Dec 18, 2023
1 parent 72c942a commit 8d6e7bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/FilesHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ protected function addNotificationsForFileAction($filePath, $activityType, $subj
$this->generateRemoteActivity($accessList['remotes'], $activityType, time(), $this->currentUser->getCloudId(), $accessList['ownerPath']);
}

$affectedUsers = $accessList['users'];
$affectedUsers = $accessList['users'] ?? [];

// file can be shared using GroupFolders, including ACL check
if ($this->config->getSystemValueBool('activity_use_cached_mountpoints', false)) {
Expand Down

0 comments on commit 8d6e7bc

Please sign in to comment.