Skip to content

Commit

Permalink
Additional fixes after review (removed references)
Browse files Browse the repository at this point in the history
Signed-off-by: Dariusz Olszewski <starypatyk@users.noreply.github.com>
  • Loading branch information
starypatyk authored and icewind1991 committed Feb 9, 2024
1 parent a8ae25d commit 073e847
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1458,9 +1458,9 @@ function ($user, $shareType, $node) use ($shares) {
->willReturn($extraShareTypes[ISHARE::TYPE_REMOTE_GROUP] ?? false);

$sharesWithoutTypes = [];
foreach ($shares as $file => &$fileShares) {
foreach ($shares as $file => $fileShares) {
$sharesWithoutTypes[$file] = [];
foreach ($fileShares as $shareType => &$shareTypeShares) {
foreach ($fileShares as $shareType => $shareTypeShares) {
if ($shareType === ISHARE::TYPE_REMOTE or $shareType === ISHARE::TYPE_REMOTE_GROUP) {
if ($extraShareTypes[$shareType] ?? false) {
$sharesWithoutTypes[$file] = array_merge($sharesWithoutTypes[$file], $shareTypeShares);
Expand Down

0 comments on commit 073e847

Please sign in to comment.