From f367b75010f9329f4fbb37083c3cfdef924009d1 Mon Sep 17 00:00:00 2001 From: Deltacms Date: Sat, 18 Feb 2023 14:23:51 +0100 Subject: [PATCH] form warning+deprecated sur $_REQUEST null --- module/form/form.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/form/form.php b/module/form/form.php index ec626d6..8c29cc6 100644 --- a/module/form/form.php +++ b/module/form/form.php @@ -18,7 +18,7 @@ class form extends common { - const VERSION = '4.6'; + const VERSION = '4.7'; const REALNAME = 'Formulaire'; const DELETE = true; const UPDATE = '0.0'; @@ -344,7 +344,7 @@ class form extends common { include('./module/form/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_form.php'); // Soumission du formulaire if($this->isPost()) { - $code = strtoupper($_REQUEST['codeCaptcha']); + $code = isset($_REQUEST['codeCaptcha'] ) ? strtoupper($_REQUEST['codeCaptcha']) : ''; // Captcha demandée if( $this->getData(['module', $this->getUrl(0), 'config', 'captcha'])){ // option de détection de robot en premier cochée et $_SESSION['humanBot']==='human'