From e519bc5a6a62667304a6c2e0f37c38b003047928 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Tue, 26 Jul 2016 14:34:22 +0200 Subject: [PATCH] Correction db insert --- library/Metier/Util/Db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Metier/Util/Db.php b/library/Metier/Util/Db.php index f5a0ff6b..56d1d785 100644 --- a/library/Metier/Util/Db.php +++ b/library/Metier/Util/Db.php @@ -37,7 +37,7 @@ class Metier_Util_Db $fields = implode(array_keys($toAdd), ','); foreach (array_values($toAdd) as $key=>$array_values) - $tmp[$key]=checkaddslashes($array_values); + $tmp[$key] = addslashes($array_values); $values = "'".implode(array_values($tmp), "','")."'"; # better $values = str_replace("'NULL'", 'NULL', $values);