]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix 'files' entries showing up in Files before the users files are scanned properly
authorRobin Appelman <icewind@owncloud.com>
Sat, 23 Jun 2012 21:42:54 +0000 (23:42 +0200)
committerRobin Appelman <icewind@owncloud.com>
Sat, 23 Jun 2012 21:42:54 +0000 (23:42 +0200)
lib/filecache.php

index 68f1aa8fe6ba333a76c0cbb5ff7e991e747df473..a0ad2be4f770f595819e33b9d9665dd92445cfa8 100644 (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 = ?)');