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