From 895fc0fa26ee5a1e9dbadb09736dbb56cad0c6e8 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Thu, 6 Mar 2014 14:23:27 +0100
Subject: [PATCH] Fix check if fileinfo is valid

---
 lib/private/files/view.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index 975b5d0009..f06c2fcd66 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -843,7 +843,7 @@ class View {
 				$data = $cache->get($internalPath);
 			}
 
-			if ($data and $data['fileid']) {
+			if ($data and isset($data['fileid'])) {
 				if ($includeMountPoints and $data['mimetype'] === 'httpd/unix-directory') {
 					//add the sizes of other mountpoints to the folder
 					$mountPoints = Filesystem::getMountPoints($path);
-- 
GitLab