Skip to content
Snippets Groups Projects
Commit f9e2fe04 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: date must be quoted

parent b23bbc24
No related branches found
No related tags found
No related merge requests found
......@@ -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
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment