]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix GDrive test rename overwrite folder
authorVincent Petry <pvince81@owncloud.com>
Tue, 7 Jun 2016 15:40:34 +0000 (17:40 +0200)
committerVincent Petry <pvince81@owncloud.com>
Fri, 10 Jun 2016 12:53:37 +0000 (14:53 +0200)
apps/files_external/lib/Lib/Storage/Google.php

index 96f12800c108b6cdac8731aa4eed7b2b9a74740a..0b617aafe9d1d6c0ff27d90e31ab7c760541bc0f 100644 (file)
@@ -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]);
                                }
                        }
                }