diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-10-01 22:29:33 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-10-01 22:29:33 +0200 |
commit | ea566868a8c0ce7da49fceb29a9d22b46034d642 (patch) | |
tree | c8ec02c23f9754e9bb912ba944cc776a01276b9f /apps/files_external/3rdparty | |
parent | ea6115bfaa6f8598da727dfacbcf093578149d9d (diff) | |
download | nextcloud-server-ea566868a8c0ce7da49fceb29a9d22b46034d642.tar.gz nextcloud-server-ea566868a8c0ce7da49fceb29a9d22b46034d642.zip |
return the correct result when doing an smb rename
Diffstat (limited to 'apps/files_external/3rdparty')
-rw-r--r-- | apps/files_external/3rdparty/smb4php/smb.php | 3 |
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) { |