Merge pull request #28981 from mdeweerd/fix/classname_empty
Fix Expected an object instance & duplicate assignment
This commit is contained in:
commit
767762a490
1 changed files with 1 additions and 1 deletions
|
|
@ -2428,7 +2428,7 @@ class Ticket extends CommonObject
|
|||
}
|
||||
}
|
||||
|
||||
if ($classname) {
|
||||
if ($classname !== '') {
|
||||
$result = dol_include_once($reldir."core/modules/ticket/".$modele.'.php');
|
||||
$modTicket = new $classname();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue