summaryrefslogtreecommitdiffstats
path: root/apps/files_external/3rdparty/smb4php/smb.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/3rdparty/smb4php/smb.php')
-rw-r--r--apps/files_external/3rdparty/smb4php/smb.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_external/3rdparty/smb4php/smb.php b/apps/files_external/3rdparty/smb4php/smb.php
index aec181a3509..e91b0a59581 100644
--- a/apps/files_external/3rdparty/smb4php/smb.php
+++ b/apps/files_external/3rdparty/smb4php/smb.php
@@ -307,7 +307,8 @@ class smb {
trigger_error('rename(): error in URL', E_USER_ERROR);
}
smb::clearstatcache ($url_from);
- return smb::execute ('rename "'.$from['path'].'" "'.$to['path'].'"', $to);
+ $result = smb::execute ('rename "'.$from['path'].'" "'.$to['path'].'"', $to);
+ return $result !== false;
}
function mkdir ($url, $mode, $options) {