summaryrefslogtreecommitdiffstats
path: root/apps/files_external/3rdparty
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-10-01 22:29:33 +0200
committerRobin Appelman <icewind@owncloud.com>2013-10-01 22:29:33 +0200
commitea566868a8c0ce7da49fceb29a9d22b46034d642 (patch)
treec8ec02c23f9754e9bb912ba944cc776a01276b9f /apps/files_external/3rdparty
parentea6115bfaa6f8598da727dfacbcf093578149d9d (diff)
downloadnextcloud-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.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) {