summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-12-13 22:28:09 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2016-12-13 22:28:09 +0100
commit9e353f6289af425769b2913d51eacc4fdf473dd8 (patch)
tree159334ab4b8b74afae19c7c0e52f3a067191bca7 /apps
parent03b648be13fa9be20babce0ccd8d4d97b008d569 (diff)
downloadnextcloud-server-9e353f6289af425769b2913d51eacc4fdf473dd8.tar.gz
nextcloud-server-9e353f6289af425769b2913d51eacc4fdf473dd8.zip
Fix overwriting parameter
Fixes #2641 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/SharedMount.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/lib/SharedMount.php b/apps/files_sharing/lib/SharedMount.php
index b7fb96b711b..2ef5e15b778 100644
--- a/apps/files_sharing/lib/SharedMount.php
+++ b/apps/files_sharing/lib/SharedMount.php
@@ -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);
}
}