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

github.com/CarnetApp/CarnetNextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Misc/CacheManager.php')
-rw-r--r--lib/Misc/CacheManager.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Misc/CacheManager.php b/lib/Misc/CacheManager.php
index ceeb17c..3fe904e 100644
--- a/lib/Misc/CacheManager.php
+++ b/lib/Misc/CacheManager.php
@@ -95,7 +95,8 @@ class CacheManager{
public function deleteFromCache($relativePath){
$sql = 'DELETE FROM `*PREFIX*carnet_metadata` WHERE `path` = ?';
$stmt = $this->db->prepare($sql);
- $stmt->bindParam(1, $this->carnetFolder->getFullPath($relativePath), \PDO::PARAM_STR);
+ $param = $this->carnetFolder->getFullPath($relativePath);
+ $stmt->bindParam(1, $param, \PDO::PARAM_STR);
$stmt->execute();
}
@@ -152,4 +153,4 @@ class CacheManager{
return $array;
}
}
-?> \ No newline at end of file
+?>