Skip to content

Commit

Permalink
Fix: Add a space after (int) for travis succes ;)
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 6, 2014
1 parent 8845300 commit 06b2c64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/product/class/product.class.php
Expand Up @@ -338,7 +338,7 @@ function create($user,$notrigger=0)
$sql.= ", ".$this->status;
$sql.= ", ".$this->status_buy;
$sql.= ", '".$this->canvas."'";
$sql.= ", ".((! isset($this->finished) || $this->finished < 0 || $this->finished == '') ? 'null' : (int)$this->finished);
$sql.= ", ".((! isset($this->finished) || $this->finished < 0 || $this->finished == '') ? 'null' : (int) $this->finished);
$sql.= ")";

dol_syslog(get_class($this)."::Create sql=".$sql);
Expand Down Expand Up @@ -474,7 +474,7 @@ function update($id, $user, $notrigger=false, $action='update')

$sql.= ", tosell = " . $this->status;
$sql.= ", tobuy = " . $this->status_buy;
$sql.= ", finished = " . ((! isset($this->finished) || $this->finished < 0) ? "null" : (int)$this->finished);
$sql.= ", finished = " . ((! isset($this->finished) || $this->finished < 0) ? "null" : (int) $this->finished);
$sql.= ", weight = " . ($this->weight!='' ? "'".$this->weight."'" : 'null');
$sql.= ", weight_units = " . ($this->weight_units!='' ? "'".$this->weight_units."'": 'null');
$sql.= ", length = " . ($this->length!='' ? "'".$this->length."'" : 'null');
Expand Down

0 comments on commit 06b2c64

Please sign in to comment.