fix 'files' entries showing up in Files before the users files are scanned properly

This commit is contained in:
Robin Appelman 2012-06-23 23:42:54 +02:00
parent f1e4c845ce
commit 44e36ecf49
1 changed files with 1 additions and 1 deletions

View File

@ -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 = ?)');