diff options
author | Dominique Fournier <dominique.fournier@grenoble.cnrs.fr> | 2020-09-10 13:54:48 +0300 |
---|---|---|
committer | Dominique Fournier <dominique.fournier@grenoble.cnrs.fr> | 2020-09-10 13:54:48 +0300 |
commit | 6fa1585fc587ce5d0158418c8826a7782af08425 (patch) | |
tree | 5726091f5f22c1b26ed3f0a4d725f1277a23718f /lib | |
parent | 9804d6fde7527ad44b486c8e050607025d2f4072 (diff) |
Usage : do not log saveText: Only variables should be passed by reference at /var/www/html/nextcloud/apps/carnet/lib/Misc/CacheManager.php#98
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 +?> |