From 2c8ffdc1608d2d0453754db6447eb78ae6c5616d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Fri, 16 Feb 2024 12:15:57 +0100 Subject: [PATCH] fix wrong test (#28202) --- htdocs/public/opensurvey/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/public/opensurvey/index.php b/htdocs/public/opensurvey/index.php index 568e6374f95..a89b3116b33 100644 --- a/htdocs/public/opensurvey/index.php +++ b/htdocs/public/opensurvey/index.php @@ -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'); }