Skip to content
Snippets Groups Projects

6.38.1

Merged Laurent requested to merge 6.38.1 into master
Compare and
+ 5
4
Preferences
Compare changes
Files
@@ -144,9 +144,11 @@ class sql
$statement = isset($this->statements[$table][$cols])
? $this->statements[$table][$cols]
: $this->statements[$table][$cols] = $this->createInsertPrepareStatement($table, $data);
foreach($data as $col => $valeur)
$statement->bindParam(":$col", trim($valeur));
foreach($data as $col => $valeur) {
$valeur = trim($valeur);
$statement->bindParam(":$col", $valeur);
}
try {
$result = $statement->execute();