Skip to content

Commit

Permalink
Fix overwriting parameter
Browse files Browse the repository at this point in the history
Fixes #2641

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
  • Loading branch information
rullzer committed Dec 22, 2016
1 parent cd4b15b commit 1339e51
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 1339e51

Please sign in to comment.