From 6b6a519afd472f19f3ddb780d90c4d2f8a73b3f3 Mon Sep 17 00:00:00 2001 From: Francis Appels Date: Tue, 10 Dec 2013 23:10:42 +0100 Subject: [PATCH] fix sql error create commande While testing on an azure website I encountered a sql error on create commande. azure uses cleardb with mysql version 5.5.21-log --- htdocs/commande/class/commande.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 27503790375..d9103180a62 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -655,7 +655,7 @@ class Commande extends CommonOrder $sql.= ", ".($this->date_livraison?"'".$this->db->idate($this->date_livraison)."'":"null"); $sql.= ", ".($this->fk_delivery_address>0?$this->fk_delivery_address:'NULL'); $sql.= ", ".($this->remise_absolue>0?$this->remise_absolue:'NULL'); - $sql.= ", '".$this->remise_percent."'"; + $sql.= ", ".($this->remise_percent>0?$this->remise_percent:0); $sql.= ", ".$conf->entity; $sql.= ")";