From f9e2fe0440399ce925ffa4e6876de3b78c4d8c55 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 15 Apr 2012 19:20:39 +0200 Subject: [PATCH] Fix: date must be quoted --- htdocs/fourn/class/fournisseur.commande.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php index 7a4383013cd..5b68773428d 100644 --- a/htdocs/fourn/class/fournisseur.commande.class.php +++ b/htdocs/fourn/class/fournisseur.commande.class.php @@ -276,7 +276,7 @@ class CommandeFournisseur extends Commande function log($user, $statut, $datelog, $comment='') { $sql = "INSERT INTO ".MAIN_DB_PREFIX."commande_fournisseur_log (datelog, fk_commande, fk_statut, fk_user, comment)"; - $sql.= " VALUES (".$this->db->idate($datelog).",".$this->id.", ".$statut.", "; + $sql.= " VALUES ('".$this->db->idate($datelog)."',".$this->id.", ".$statut.", "; $sql.= $user->id.", "; $sql.= ($comment?"'".$this->db->escape($comment)."'":'null'); $sql.= ")"; @@ -1885,4 +1885,4 @@ class CommandeFournisseurLigne extends OrderLine } } -?> \ No newline at end of file +?>