diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-02-04 13:28:31 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-02-04 13:28:31 +0100 |
commit | 7c33d0a5a763be92c7e6dbf526484ef372c7111f (patch) | |
tree | cb12bc6310f3fe0ddfce68072798f4c67fe7a8cb /lib | |
parent | 80dd8d7802f90ce088b03e46d62e12367dcad278 (diff) | |
download | nextcloud-server-7c33d0a5a763be92c7e6dbf526484ef372c7111f.tar.gz nextcloud-server-7c33d0a5a763be92c7e6dbf526484ef372c7111f.zip |
Cache: fix copy-paste errors
Diffstat (limited to 'lib')
-rw-r--r-- | lib/files/view.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/files/view.php b/lib/files/view.php index ff94d3e602b..00c0c3b1159 100644 --- a/lib/files/view.php +++ b/lib/files/view.php @@ -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); /** |