fix warning (#28112)

This commit is contained in:
Frédéric FRANCE 2024-02-11 11:11:30 +01:00 committed by GitHub
parent 62177404a5
commit f9212cd5db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -391,7 +391,8 @@ foreach ($dirsociete as $dirroot) {
dol_syslog($e->getMessage(), LOG_ERR);
}
$modCodeTiers = new $file();
/** @var ModeleThirdPartyCode $modCodeTiers */
$modCodeTiers = new $file($db);
// Show modules according to features level
if ($modCodeTiers->version == 'development' && getDolGlobalInt('MAIN_FEATURES_LEVEL') < 2) {