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 <12234510+solracsf@users.noreply.github.com>

Fix psalm

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>

Use empty array if array is unset

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
  • Loading branch information
solracsf authored and AndyScherzinger committed May 7, 2024
1 parent 81c88e4 commit 997e2bb
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 @@ -151,7 +151,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 997e2bb

Please sign in to comment.