Fix: missing clean parameters

This commit is contained in:
Regis Houssin 2012-10-09 16:59:19 +02:00
parent 8486f9d85d
commit 9f43d8613c

View File

@ -114,6 +114,8 @@ class Categorie
$error=0;
// Clean parameters
$this->label = trim($this->label);
$this->description = trim($this->description);
$this->import_key = trim($this->import_key);
if (empty($this->visible)) $this->visible=0;
$this->fk_parent = ($this->fk_parent != "" ? intval($this->fk_parent) : 0);