Fix: syntax error
This commit is contained in:
parent
dd8fc8727d
commit
e8bca38daf
1 changed files with 5 additions and 3 deletions
|
|
@ -83,6 +83,8 @@ class Project extends CommonObject
|
|||
$error = 0;
|
||||
$ret = 0;
|
||||
|
||||
$now=dol_now();
|
||||
|
||||
// Check parameters
|
||||
if (!trim($this->ref))
|
||||
{
|
||||
|
|
@ -113,9 +115,9 @@ class Project extends CommonObject
|
|||
$sql.= ", " . $user->id;
|
||||
$sql.= ", 0";
|
||||
$sql.= ", " . ($this->public ? 1 : 0);
|
||||
$sql.= ", " . $this->db->idate(dol_now());
|
||||
$sql.= ", " . ($this->date_start != '' ? $this->db->idate($this->date_start) : 'null');
|
||||
$sql.= ", " . ($this->date_end != '' ? $this->db->idate($this->date_end) : 'null');
|
||||
$sql.= ", '".$this->db->idate($now)."'";
|
||||
$sql.= ", " . ($this->date_start != '' ? "'".$this->db->idate($this->date_start)."'" : 'null');
|
||||
$sql.= ", " . ($this->date_end != '' ? "'".$this->db->idate($this->date_end)."'" : 'null');
|
||||
$sql.= ", ".$conf->entity;
|
||||
$sql.= ")";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue