diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-06-20 11:02:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-20 11:02:24 +0200 |
commit | 09261fca861d4900650f009cd47dd15802b184dc (patch) | |
tree | efa8b8ac3cf17080750c6adf8166ec3cc76ed898 /apps/files_external | |
parent | fa533e72cd7a7f8f3eddff2ec9946f97d6c0334d (diff) | |
parent | c51bdd18096eb447eec72b934f7bb1d537f1a6f8 (diff) | |
download | nextcloud-server-09261fca861d4900650f009cd47dd15802b184dc.tar.gz nextcloud-server-09261fca861d4900650f009cd47dd15802b184dc.zip |
Merge pull request #25010 from owncloud/gdrive-fix-tests
Fix GDrive test rename overwrite folder
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/lib/Lib/Storage/Google.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/Lib/Storage/Google.php b/apps/files_external/lib/Lib/Storage/Google.php index 96f12800c10..0b617aafe9d 100644 --- a/apps/files_external/lib/Lib/Storage/Google.php +++ b/apps/files_external/lib/Lib/Storage/Google.php @@ -168,11 +168,11 @@ class Google extends \OC\Files\Storage\Common { $path = trim($path, '/'); $this->driveFiles[$path] = $file; if ($file === false) { - // Set all child paths as false + // Remove all children $len = strlen($path); foreach ($this->driveFiles as $key => $file) { if (substr($key, 0, $len) === $path) { - $this->driveFiles[$key] = false; + unset($this->driveFiles[$key]); } } } |