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:
authorDominique Fournier <dominique.fournier@grenoble.cnrs.fr>2020-09-10 13:54:48 +0300
committerDominique Fournier <dominique.fournier@grenoble.cnrs.fr>2020-09-10 13:54:48 +0300
commit6fa1585fc587ce5d0158418c8826a7782af08425 (patch)
tree5726091f5f22c1b26ed3f0a4d725f1277a23718f
parent9804d6fde7527ad44b486c8e050607025d2f4072 (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
-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
+?>