From f9212cd5dba255cec17425a96f22733f8bbcfe57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sun, 11 Feb 2024 11:11:30 +0100 Subject: [PATCH] fix warning (#28112) --- htdocs/societe/admin/societe.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/societe/admin/societe.php b/htdocs/societe/admin/societe.php index 66f7c413f19..10f1bac2c8d 100644 --- a/htdocs/societe/admin/societe.php +++ b/htdocs/societe/admin/societe.php @@ -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) {