summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2016-12-14 10:36:05 +0100
committerGitHub <noreply@github.com>2016-12-14 10:36:05 +0100
commit4f96fcfb9d884ff07bdf1dafbe1d867437d7ff72 (patch)
tree159334ab4b8b74afae19c7c0e52f3a067191bca7 /apps
parent03b648be13fa9be20babce0ccd8d4d97b008d569 (diff)
parent9e353f6289af425769b2913d51eacc4fdf473dd8 (diff)
downloadnextcloud-server-4f96fcfb9d884ff07bdf1dafbe1d867437d7ff72.tar.gz
nextcloud-server-4f96fcfb9d884ff07bdf1dafbe1d867437d7ff72.zip
Merge pull request #2659 from nextcloud/fix_2641
Fix overwriting parameter
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);
}
}