Skip to content
Snippets Groups Projects
Commit 5f62a1f2 authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: bad parameters

parent a5b847f3
No related branches found
No related tags found
No related merge requests found
......@@ -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))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment