Skip to content

Commit

Permalink
Merge pull request #2825 from nextcloud/stable11-2659
Browse files Browse the repository at this point in the history
[stable11] Fix overwriting parameter
  • Loading branch information
MorrisJobke committed Dec 22, 2016
2 parents 64ea055 + 1339e51 commit 43dcc68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/files_sharing/lib/SharedMount.php
Expand Up @@ -115,9 +115,9 @@ private function verifyMountPoint(\OCP\Share\IShare $share, array $mountpoints)
private function updateFileTarget($newPath, &$share) {
$share->setTarget($newPath);

foreach ($this->groupedShares as $share) {
$share->setTarget($newPath);
\OC::$server->getShareManager()->moveShare($share, $this->user);
foreach ($this->groupedShares as $tmpShare) {
$tmpShare->setTarget($newPath);
\OC::$server->getShareManager()->moveShare($tmpShare, $this->user);
}
}

Expand Down

0 comments on commit 43dcc68

Please sign in to comment.