diff options
-rw-r--r-- | apps/files_external/lib/Lib/Storage/SMB.php | 8 |
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 e98cbefaec3..4773afcb75f 100644 --- a/apps/files_external/lib/Lib/Storage/SMB.php +++ b/apps/files_external/lib/Lib/Storage/SMB.php @@ -499,9 +499,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); } |