form warning+deprecated sur $_REQUEST null

This commit is contained in:
Deltacms 2023-02-18 14:23:51 +01:00
parent af899484b7
commit f367b75010
1 changed files with 2 additions and 2 deletions

View File

@ -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'