Skip to content

Commit 11a414d

Browse files
Messj1artonge
andauthored
Update lib/FilesHooks.php
Co-authored-by: Louis <louis@chmn.me> Signed-off-by: Messj1 <jan@mtec-studios.ch>
1 parent e63aa5f commit 11a414d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/FilesHooks.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -396,10 +396,7 @@ protected function fileMoving($oldPath, $newPath) {
396396
}
397397
$accessList = $this->getUserPathsFromPath($parentPath, $parentOwner);
398398
$affectedUsers = $accessList['users'];
399-
$oldUsers = [];
400-
if (isset($this->oldAccessList['users'])) {
401-
$oldUsers = $this->oldAccessList['users'];
402-
}
399+
$oldUsers = $this->oldAccessList['users'] ?? [];
403400

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

0 commit comments

Comments
 (0)