]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix overwriting parameter 2659/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Tue, 13 Dec 2016 21:28:09 +0000 (22:28 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Tue, 13 Dec 2016 21:28:09 +0000 (22:28 +0100)
Fixes #2641

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
apps/files_sharing/lib/SharedMount.php

index b7fb96b711b60191282b30d0e2de278f449180b5..2ef5e15b7782a78bb23a28ba86e3edd26b8f78d4 100644 (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);
                }
        }