From 5f62a1f27f66325b11c1c4ea4cb04e1464f7a41e Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 10 Nov 2011 14:44:10 +0100 Subject: [PATCH] Fix: bad parameters --- htdocs/core/class/html.form.class.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 4b26d3a4c2e..3ad8972b97e 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -60,9 +60,9 @@ class Form * * @param DoliDB $DB Database handler */ - function Form($DB) + public function __construct($db) { - $this->db = $DB; + $this->db = $db; } /** @@ -257,7 +257,9 @@ class Form { $tmp=explode(':',$inputType); $inputType=$tmp[0]; $toolbar=$tmp[1]; - if (! empty($tmp[2])) $savemethod=$tmp[2]; + if (! empty($tmp[2])) $width=$tmp[2]; + if (! empty($tmp[3])) $heigth=$tmp[3]; + if (! empty($tmp[4])) $savemethod=$tmp[4]; if (! empty($conf->fckeditor->enabled)) {