[-] FO : Customized meesage with carriage return follow up #962

This commit is contained in:
gRoussac
2013-11-12 10:41:19 +01:00
parent cd83ec93c7
commit c1969028f2
2 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -1087,9 +1087,10 @@ class CartCore extends ObjectModel
);
$id_customization = Db::getInstance()->Insert_ID();
}
$field = preg_replace("/\<br\s*\/?\>/i", "\n", $field);
$query = 'INSERT INTO `'._DB_PREFIX_.'customized_data` (`id_customization`, `type`, `index`, `value`)
VALUES ('.(int)$id_customization.', '.(int)$type.', '.(int)$index.', \''.pSql($field).'\')';
VALUES ('.(int)$id_customization.', '.(int)$type.', '.(int)$index.', \''.pSQL($field).'\')';
if (!Db::getInstance()->execute($query))
return false;