Correction db insert

This commit is contained in:
Michael RICOIS 2016-07-26 14:34:22 +02:00
parent d294b88c75
commit e519bc5a6a

View File

@ -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);