Fix: Syntax error

This commit is contained in:
Laurent Destailleur 2010-03-21 12:57:06 +00:00
parent 0164bc4c69
commit cf067eebca

View File

@ -101,8 +101,8 @@ class Deplacement extends CommonObject
$sql.= ", ".$user->id;
$sql.= ", ".$this->fk_user;
$sql.= ", '".$this->type."'";
$sql.= ", note = ".($this->note?"'".addslashes($this->note)."'":"null");
$sql.= ", note_public = ".($this->note_public?"'".addslashes($this->note_public)."'":"null");
$sql.= ", ".($this->note?"'".addslashes($this->note)."'":"null");
$sql.= ", ".($this->note_public?"'".addslashes($this->note_public)."'":"null");
$sql.= ")";
dol_syslog("Deplacement::create sql=".$sql, LOG_DEBUG);