Skip to content

Commit 4954940

Browse files
committed
adapted syntax changes to remotes in accessList
Signed-off-by: Jan Messer <jan@mtec-studios.ch>
1 parent 11a414d commit 4954940

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
@@ -416,10 +416,7 @@ protected function fileMoving($oldPath, $newPath) {
416416
$moveUsers = array_intersect($beforeUsers, $afterUsers);
417417
$this->generateMoveActivities($moveUsers, $oldUsers, $affectedUsers, $fileId, $oldFileName, $parentId, $fileName);
418418

419-
$beforeRemotes = [];
420-
if (isset($this->oldAccessList['users'])) {
421-
$beforeRemotes = $this->oldAccessList['remotes'];
422-
}
419+
$beforeRemotes = $this->oldAccessList['remotes'] ?? [];
423420
$afterRemotes = $accessList['remotes'];
424421

425422
$addRemotes = $deleteRemotes = $moveRemotes = [];

0 commit comments

Comments
 (0)