Correction db insert
This commit is contained in:
parent
d294b88c75
commit
e519bc5a6a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user