From: Robin Appelman Date: Sat, 23 Jun 2012 21:42:54 +0000 (+0200) Subject: fix 'files' entries showing up in Files before the users files are scanned properly X-Git-Tag: v4.0.4~9^2~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=44e36ecf49090b988bf865825c11f70794eba023;p=nextcloud-server.git fix 'files' entries showing up in Files before the users files are scanned properly --- diff --git a/lib/filecache.php b/lib/filecache.php index 68f1aa8fe6b..a0ad2be4f77 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 = ?)');