summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-11-16 17:52:52 +0100
committerRobin Appelman <icewind@owncloud.com>2012-11-16 17:52:52 +0100
commit8fe69dfac69351a10e587fb845a00d3dcdf2e82c (patch)
tree5305acc7e82bab94f87a864f3bb1c7e168a9f7c6 /lib
parent74611801dd525b6b30580061d1919c864330fc56 (diff)
downloadnextcloud-server-8fe69dfac69351a10e587fb845a00d3dcdf2e82c.tar.gz
nextcloud-server-8fe69dfac69351a10e587fb845a00d3dcdf2e82c.zip
also return fileid in OC_Filecache::get
Diffstat (limited to 'lib')
-rw-r--r--lib/filecache/cached.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/filecache/cached.php b/lib/filecache/cached.php
index 7458322fb14..5e0a00746b9 100644
--- a/lib/filecache/cached.php
+++ b/lib/filecache/cached.php
@@ -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
+}