From 7c33d0a5a763be92c7e6dbf526484ef372c7111f Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 4 Feb 2013 13:28:31 +0100 Subject: [PATCH] Cache: fix copy-paste errors --- lib/files/view.php | 4 ++-- 1 file 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); /**