From a03184d664fe5281aef1b37af8d4485ae36b1cc7 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 15 Jul 2004 09:32:29 +0000 Subject: [PATCH] Ajout des quotes dans sql --- htdocs/commande/commande.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php index e690178fb66..8eee4e2ba82 100644 --- a/htdocs/commande/commande.class.php +++ b/htdocs/commande/commande.class.php @@ -652,7 +652,7 @@ class Commande /* * */ - $sql = "UPDATE ".MAIN_DB_PREFIX."commande set amount_ht=$totalht, total_ht=$totalht, tva=$totaltva, total_ttc=$totalttc, remise=$total_remise WHERE rowid = $this->id"; + $sql = "UPDATE ".MAIN_DB_PREFIX."commande set amount_ht='$totalht', total_ht='$totalht', tva='$totaltva', total_ttc='$totalttc', remise='$total_remise' WHERE rowid = $this->id"; if ( $this->db->query($sql) ) { return 1;