]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix undefined variable for copying empty folders
authorMichael Gapczynski <mtgap@owncloud.com>
Fri, 24 May 2013 00:42:23 +0000 (20:42 -0400)
committerMichael Gapczynski <mtgap@owncloud.com>
Fri, 24 May 2013 00:42:23 +0000 (20:42 -0400)
lib/files/view.php

index c7764c6095dc7a0678b809a18bb85f22cdf438b2..c93b579451ec1c1e73ba0a2baecb1ae5b612615a 100644 (file)
@@ -467,7 +467,7 @@ class View {
                                        }
                                } else {
                                        if ($this->is_dir($path1) && ($dh = $this->opendir($path1))) {
-                                               $this->mkdir($path2);
+                                               $result = $this->mkdir($path2);
                                                while ($file = readdir($dh)) {
                                                        if (!Filesystem::isIgnoredDir($file)) {
                                                                $result = $this->copy($path1 . '/' . $file, $path2 . '/' . $file);