summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-12-07 16:23:13 +0100
committerRobin Appelman <robin@icewind.nl>2016-12-07 16:25:10 +0100
commitb5401adc00790c33b2618f9f544c20ab747b9f7e (patch)
tree02e2f7884f730bbc77afad1be4d56748a4c54511 /apps
parentb1901534be20ab768c4f5dccaa5c7c81fb472aa8 (diff)
downloadnextcloud-server-b5401adc00790c33b2618f9f544c20ab747b9f7e.tar.gz
nextcloud-server-b5401adc00790c33b2618f9f544c20ab747b9f7e.zip
Fix order of parameters when getting notified of smb renames
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/lib/Lib/Storage/SMB.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/files_external/lib/Lib/Storage/SMB.php b/apps/files_external/lib/Lib/Storage/SMB.php
index 28445dd2f61..85128c56229 100644
--- a/apps/files_external/lib/Lib/Storage/SMB.php
+++ b/apps/files_external/lib/Lib/Storage/SMB.php
@@ -457,9 +457,11 @@ class SMB extends Common implements INotifyStorage {
if (is_null($type)) {
return true;
}
- if ($type === INotifyStorage::NOTIFY_RENAMED && !is_null($oldRenamePath)) {
- $result = $callback($type, $path, $oldRenamePath);
- $oldRenamePath = null;
+ if ($type === INotifyStorage::NOTIFY_RENAMED) {
+ if (!is_null($oldRenamePath)) {
+ $result = $callback($type, $oldRenamePath, $path);
+ $oldRenamePath = null;
+ }
} else {
$result = $callback($type, $path);
}