]> source.dussan.org Git - nextcloud-server.git/commitdiff
also return fileid in OC_Filecache::get
authorRobin Appelman <icewind@owncloud.com>
Fri, 16 Nov 2012 16:52:52 +0000 (17:52 +0100)
committerRobin Appelman <icewind@owncloud.com>
Fri, 16 Nov 2012 16:52:52 +0000 (17:52 +0100)
lib/filecache/cached.php

index 7458322fb14ab1817b25653bf2aef75e0e790122..5e0a00746b98df761f9edab5a58f996858f5f0c7 100644 (file)
@@ -18,7 +18,7 @@ class OC_FileCache_Cached{
                        $root=OC_Filesystem::getRoot();
                }
                $path=$root.$path;
-               $stmt=OC_DB::prepare('SELECT `path`,`ctime`,`mtime`,`mimetype`,`size`,`encrypted`,`versioned`,`writable` FROM `*PREFIX*fscache` WHERE `path_hash`=?');
+               $stmt=OC_DB::prepare('SELECT `id`, `path`,`ctime`,`mtime`,`mimetype`,`size`,`encrypted`,`versioned`,`writable` FROM `*PREFIX*fscache` WHERE `path_hash`=?');
                if ( ! OC_DB::isError($stmt) ) {
                        $result=$stmt->execute(array(md5($path)));
                        if ( ! OC_DB::isError($result) ) {
@@ -78,4 +78,4 @@ class OC_FileCache_Cached{
                        return false;
                }
        }
-}
\ No newline at end of file
+}