From 44e36ecf49090b988bf865825c11f70794eba023 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Sat, 23 Jun 2012 23:42:54 +0200
Subject: [PATCH] fix 'files' entries showing up in Files before the users
 files are scanned properly

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

diff --git a/lib/filecache.php b/lib/filecache.php
index 68f1aa8fe6..a0ad2be4f7 100644
--- a/lib/filecache.php
+++ b/lib/filecache.php
@@ -267,7 +267,7 @@ class OC_FileCache{
 		}
 		$path=$root.$path;
 		$parent=self::getFileId($path);
-		if($path==-1){
+		if($parent==-1){
 			return array();
 		}
     $query=OC_DB::prepare('SELECT name,ctime,mtime,mimetype,size,encrypted,versioned,writable FROM *PREFIX*fscache WHERE parent=? AND (mimetype LIKE ? OR mimetype = ?)');
-- 
GitLab