Update html.formfile.class.php
This commit is contained in:
parent
2472dff67b
commit
ae9643bbef
1 changed files with 2 additions and 1 deletions
|
|
@ -1672,7 +1672,8 @@ class FormFile
|
|||
dol_include_once($hookmanager->resArray['classpath']);
|
||||
if (array_key_exists('classname', $hookmanager->resArray) && !empty($hookmanager->resArray['classname'])) {
|
||||
if (class_exists($hookmanager->resArray['classname'])) {
|
||||
$object_instance = new $hookmanager->resArray['classname']($this->db);
|
||||
$tmpclassname = $hookmanager->resArray['classname'];
|
||||
$object_instance = new $tmpclassname($this->db);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue