summaryrefslogtreecommitdiffstats
path: root/lib/filecache/cached.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/filecache/cached.php')
-rw-r--r--lib/filecache/cached.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/filecache/cached.php b/lib/filecache/cached.php
index 9b1eb4f7803..5e0a00746b9 100644
--- a/lib/filecache/cached.php
+++ b/lib/filecache/cached.php
@@ -13,12 +13,12 @@
class OC_FileCache_Cached{
public static $savedData=array();
- public static function get($path,$root=false) {
+ public static function get($path, $root=false) {
if($root===false) {
$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) ) {
@@ -61,7 +61,7 @@ class OC_FileCache_Cached{
* - encrypted
* - versioned
*/
- public static function getFolderContent($path,$root=false,$mimetype_filter='') {
+ public static function getFolderContent($path, $root=false, $mimetype_filter='') {
if($root===false) {
$root=OC_Filesystem::getRoot();
}
@@ -78,4 +78,4 @@ class OC_FileCache_Cached{
return false;
}
}
-} \ No newline at end of file
+}