diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Misc/CacheManager.php | 5 |
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 +?> |