fix wrong test (#28202)

This commit is contained in:
Frédéric FRANCE
2024-02-16 12:15:57 +01:00
committed by Laurent Destailleur
parent f2961901fe
commit 2c8ffdc160

View File

@@ -79,8 +79,8 @@ $object = new Opensurveysondage($db);
$urlwithroot = DOL_MAIN_URL_ROOT; // This is to use same domain name than current. For Paypal payment, we can use internal URL like localhost.
// Security check
if (empty($conf->recruitment->enabled)) {
httponly_accessforbidden('Module Recruitment not enabled');
if (!isModEnabled('opensurvey')) {
httponly_accessforbidden('Module Opensurvey not enabled');
}