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

Fix: syntax error

parent dd8fc872
No related branches found
No related tags found
No related merge requests found
......@@ -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.= ")";
......
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