From 018771c0f53ef482f94c4a5462b37d917af8623c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 25 Jun 2014 20:07:21 +0200 Subject: [PATCH] Fix: sql syntax error (missing ' on date) --- 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 57281bb43a6..6b88ff3553d 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -483,7 +483,7 @@ class Commande extends CommonOrder $sql = 'UPDATE '.MAIN_DB_PREFIX.'commande'; $sql.= ' SET fk_statut = 3,'; $sql.= ' fk_user_cloture = '.$user->id.','; - $sql.= ' date_cloture = '.$this->db->idate($now); + $sql.= " date_cloture = '".$this->db->idate($now)."'"; $sql.= ' WHERE rowid = '.$this->id.' AND fk_statut > 0'; if ($this->db->query($sql))