From e9d370e5c31d9b16b6e51e251ef4d69b9ee87b08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 13 Feb 2019 23:53:33 +0100 Subject: [PATCH] Update website.class.php --- htdocs/website/class/website.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/website/class/website.class.php b/htdocs/website/class/website.class.php index da85b170259..9d36449da30 100644 --- a/htdocs/website/class/website.class.php +++ b/htdocs/website/class/website.class.php @@ -123,7 +123,7 @@ class Website extends CommonObject // Clean parameters if (isset($this->entity)) { - $this->entity = trim($this->entity); + $this->entity = (int) $this->entity; } if (isset($this->ref)) { $this->ref = trim($this->ref); @@ -132,7 +132,7 @@ class Website extends CommonObject $this->description = trim($this->description); } if (isset($this->status)) { - $this->status = trim($this->status); + $this->status = (int) $this->status; } if (empty($this->date_creation)) { $this->date_creation = $now; @@ -388,7 +388,7 @@ class Website extends CommonObject // Clean parameters if (isset($this->entity)) { - $this->entity = trim($this->entity); + $this->entity = (int) $this->entity; } if (isset($this->ref)) { $this->ref = trim($this->ref); @@ -397,7 +397,7 @@ class Website extends CommonObject $this->description = trim($this->description); } if (isset($this->status)) { - $this->status = trim($this->status); + $this->status = (int) $this->status; } // Check parameters @@ -519,7 +519,7 @@ class Website extends CommonObject */ public function createFromClone($user, $fromid, $newref, $newlang = '') { - global $hookmanager, $langs; + global $conf, $hookmanager, $langs; global $dolibarr_main_data_root; $now = dol_now();