diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-06-23 23:42:54 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-06-23 23:42:54 +0200 |
commit | 44e36ecf49090b988bf865825c11f70794eba023 (patch) | |
tree | 1f79196de81e1b6d486e934dc3f29622bc1394c2 /lib/filecache.php | |
parent | f1e4c845ce9ee215d18a059fd53a13e91fbf9d8c (diff) | |
download | nextcloud-server-44e36ecf49090b988bf865825c11f70794eba023.tar.gz nextcloud-server-44e36ecf49090b988bf865825c11f70794eba023.zip |
fix 'files' entries showing up in Files before the users files are scanned properly
Diffstat (limited to 'lib/filecache.php')
-rw-r--r-- | lib/filecache.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 = ?)'); |