]> source.dussan.org Git - nextcloud-server.git/commitdiff
Cache: fix copy-paste errors
authorRobin Appelman <icewind@owncloud.com>
Mon, 4 Feb 2013 12:28:31 +0000 (13:28 +0100)
committerRobin Appelman <icewind@owncloud.com>
Mon, 4 Feb 2013 12:28:31 +0000 (13:28 +0100)
lib/files/view.php

index ff94d3e602b6ae1aecd8b7efc0c1eeb12d323089..00c0c3b1159d076ef11909eebc0944c83804140c 100644 (file)
@@ -727,8 +727,8 @@ class View {
         */
        public function getDirectoryContent($directory, $mimetype_filter = '') {
                $result = array();
-               if (!Filesystem::isValidPath($path)) {
-                       return $data;
+               if (!Filesystem::isValidPath($directory)) {
+                       return $result;
                }
                $path = Filesystem::normalizePath($this->fakeRoot . '/' . $directory);
                /**