Merge pull request #2825 from nextcloud/stable11-2659

[stable11] Fix overwriting parameter
This commit is contained in:
Morris Jobke 2016-12-22 14:47:40 +01:00 committed by GitHub
commit 43dcc686bd
1 changed files with 3 additions and 3 deletions

View File

@ -115,9 +115,9 @@ class SharedMount extends MountPoint implements MoveableMount {
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);
}
}