Merge pull request #28981 from mdeweerd/fix/classname_empty

Fix Expected an object instance & duplicate assignment
This commit is contained in:
Laurent Destailleur 2024-03-20 10:57:04 +01:00 committed by GitHub
commit 767762a490
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();