Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-06-24 01:42:54 +0400
committerRobin Appelman <icewind@owncloud.com>2012-06-24 01:42:54 +0400
commit44e36ecf49090b988bf865825c11f70794eba023 (patch)
tree1f79196de81e1b6d486e934dc3f29622bc1394c2
parentf1e4c845ce9ee215d18a059fd53a13e91fbf9d8c (diff)
fix 'files' entries showing up in Files before the users files are scanned properly
-rw-r--r--lib/filecache.php2
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 = ?)');