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 +?>