Quellcode durchsuchen

Fix order of parameters when getting notified of smb renames

Signed-off-by: Robin Appelman <robin@icewind.nl>
tags/v12.0.0beta1
Robin Appelman vor 7 Jahren
Ursprung
Commit
b5401adc00
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
1 geänderte Dateien mit 5 neuen und 3 gelöschten Zeilen
  1. 5
    3
      apps/files_external/lib/Lib/Storage/SMB.php

+ 5
- 3
apps/files_external/lib/Lib/Storage/SMB.php Datei anzeigen

@@ -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);
}

Laden…
Abbrechen
Speichern