Fix: pgsql compatibility

This commit is contained in:
eldy 2011-09-11 01:31:26 +02:00
parent cf9f8f2352
commit 1ad4ad12ac

View File

@ -215,6 +215,7 @@ class Categorie
$this->label=trim($this->label); $this->label=trim($this->label);
$this->description=trim($this->description); $this->description=trim($this->description);
$this->parentId = ($this->id_mere) != "" ? intval($this->id_mere) : 0; $this->parentId = ($this->id_mere) != "" ? intval($this->id_mere) : 0;
$this->visible = ($this->visible) != "" ? intval($this->visible) : 0;
if ($this->already_exists()) if ($this->already_exists())
{ {