Browse Source

Éviter un warning (#7)

Co-authored-by: nicod_ <nicod@lerebooteux.fr>
Reviewed-on: #7
master
nicod_ 2 days ago
parent
commit
45d63b46ec
  1. 7
      nospam_pipelines.php

7
nospam_pipelines.php

@ -65,7 +65,12 @@ function nospam_inserer_nobot(&$texte, $args) {
if (_SPAM_ENCRYPT_NAME
or (isset($args['_nospam_encrypt']) and $args['_nospam_encrypt'])) {
include_spip('inc/nospam_encrypt');
$texte = nospam_encrypt_form_names($texte, $args['_nospam_encrypt'] === 'all' ? false : true, null, isset($args['_nospam_may_be_bot']) ? $args['_nospam_may_be_bot'] : false);
$texte = nospam_encrypt_form_names(
$texte,
(isset($args['_nospam_encrypt']) and $args['_nospam_encrypt'] === 'all') ? false : true,
null,
isset($args['_nospam_may_be_bot']) ? $args['_nospam_may_be_bot'] : false
);
}
}

Loading…
Cancel
Save