Ignore:
Timestamp:
Dec 9, 2015, 9:57:11 AM (5 years ago)
Author:
suske@…
Message:

Supprimer un warning + mode strict (conseillé ?)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/paravent/trunk/paravent_autorisations.php

    r71984 r93470  
    1616 */
    1717function autoriser_travaux(){
    18         return in_array($GLOBALS['visiteur_session']['statut'], array('0minirezo', '1comite'));
     18        if (isset($GLOBALS['visiteur_session']['statut'])) {
     19                return in_array($GLOBALS['visiteur_session']['statut'], array('0minirezo','1comite'),true);
     20                }
    1921        }
    2022?>
Note: See TracChangeset for help on using the changeset viewer.