From 37f9af156852bd0a1a6cb9fde0c1dee45324b70e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 2 Apr 2005 12:39:10 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Plantage=20en=20cas=20de=20mauvaise=20sa?= =?UTF-8?q?isie=20du=20prix=20=E0=20la=20cr=E9ation=20d'un=20produit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/product.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/product.class.php b/htdocs/product.class.php index 8fbfbf249b5..71bec12d9e1 100644 --- a/htdocs/product.class.php +++ b/htdocs/product.class.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004 Laurent Destailleur + * Copyright (C) 2004-2005 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -116,7 +116,7 @@ class Product } $sql = "INSERT INTO ".MAIN_DB_PREFIX."product (datec, fk_user_author, fk_product_type, price)"; - $sql .= " VALUES (now(),".$user->id.",$this->type, " . ereg_replace(",",".",$this->price) . ")"; + $sql .= " VALUES (now(),".$user->id.",$this->type, '" . ereg_replace(",",".",$this->price) . "')"; $result = $this->db->query($sql); if ( $result ) {