form warning+deprecated sur $_REQUEST null
This commit is contained in:
parent
af899484b7
commit
f367b75010
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
class form extends common {
|
class form extends common {
|
||||||
|
|
||||||
const VERSION = '4.6';
|
const VERSION = '4.7';
|
||||||
const REALNAME = 'Formulaire';
|
const REALNAME = 'Formulaire';
|
||||||
const DELETE = true;
|
const DELETE = true;
|
||||||
const UPDATE = '0.0';
|
const UPDATE = '0.0';
|
||||||
|
@ -344,7 +344,7 @@ class form extends common {
|
||||||
include('./module/form/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_form.php');
|
include('./module/form/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_form.php');
|
||||||
// Soumission du formulaire
|
// Soumission du formulaire
|
||||||
if($this->isPost()) {
|
if($this->isPost()) {
|
||||||
$code = strtoupper($_REQUEST['codeCaptcha']);
|
$code = isset($_REQUEST['codeCaptcha'] ) ? strtoupper($_REQUEST['codeCaptcha']) : '';
|
||||||
// Captcha demandée
|
// Captcha demandée
|
||||||
if( $this->getData(['module', $this->getUrl(0), 'config', 'captcha'])){
|
if( $this->getData(['module', $this->getUrl(0), 'config', 'captcha'])){
|
||||||
// option de détection de robot en premier cochée et $_SESSION['humanBot']==='human'
|
// option de détection de robot en premier cochée et $_SESSION['humanBot']==='human'
|
||||||
|
|
Loading…
Reference in New Issue