Skip to content

Commit

Permalink
adapted syntax changes to remotes in accessList
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Messer <[email protected]>
  • Loading branch information
Messj1 committed Jul 18, 2024
1 parent aebfc65 commit 0b789c1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/FilesHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -416,10 +416,7 @@ protected function fileMoving($oldPath, $newPath) {
$moveUsers = array_intersect($beforeUsers, $afterUsers);
$this->generateMoveActivities($moveUsers, $oldUsers, $affectedUsers, $fileId, $oldFileName, $parentId, $fileName);

$beforeRemotes = [];
if (isset($this->oldAccessList['users'])) {
$beforeRemotes = $this->oldAccessList['remotes'];
}
$beforeRemotes = $this->oldAccessList['remotes'] ?? [];
$afterRemotes = $accessList['remotes'];

$addRemotes = $deleteRemotes = $moveRemotes = [];
Expand Down

0 comments on commit 0b789c1

Please sign in to comment.