Ignore:
Timestamp:
Mar 3, 2017, 12:38:06 PM (4 years ago)
Author:
teddy.spip@…
Message:
  • Ne pas ajouter recommander dans le pipeline de nospam s'il est déjà présent.
  • Up de z
File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/recommander/recommander_options.php

    r99019 r103134  
    11<?php
    22
    3 if (!defined('_ECRIRE_INC_VERSION')) return;
     3if (!defined('_ECRIRE_INC_VERSION')) {
     4        return;
     5}
    46
    57// brancher le plugin sur nospam
    6 $GLOBALS['formulaires_no_spam'][] = 'recommander';
     8if (isset($GLOBALS['formulaires_no_spam']) and is_array($GLOBALS['formulaires_no_spam']) and !in_array('recommander', $GLOBALS['formulaires_no_spam'])) {
     9        $GLOBALS['formulaires_no_spam'][] = 'recommander';
     10}
Note: See TracChangeset for help on using the changeset viewer.