Skip to content

Commit

Permalink
Fix: Pb with pgsql
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Sep 3, 2014
1 parent be0c7ba commit be3f458
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dev/skeletons/build_class_from_table.php
Expand Up @@ -254,11 +254,11 @@
$varprop.="\t\t\$sql.= \" ";
if ($prop['istime'])
{
$varprop.='".(! isset($this->'.$prop['field'].') || dol_strlen($this->'.$prop['field'].')==0?\'NULL\':$this->db->idate(';
$varprop.='".(! isset($this->'.$prop['field'].') || dol_strlen($this->'.$prop['field'].')==0?\'NULL\':"\'".$this->db->idate(';
$varprop.="\$this->".$prop['field']."";
$varprop.='))."';
$varprop.=')."\'")."';
if ($i < count($property)) $varprop.=",";
$varprop.="\";";
$varprop.='";';
}
elseif ($prop['ischar'])
{
Expand Down

0 comments on commit be3f458

Please sign in to comment.