diff --git a/orthotypo_fonctions.php b/orthotypo_fonctions.php index 9536f71..a209a6d 100644 --- a/orthotypo_fonctions.php +++ b/orthotypo_fonctions.php @@ -342,7 +342,8 @@ function orthotypo_exposants_fr($texte){ static $typo = null; static $egrave; static $eaigu1; static $eaigu2; static $accents; if (is_null($typo)) { - $u = ($GLOBALS['meta']['charset']=="utf-8"?"u":""); + + $u = isset($GLOBALS['meta']['charset']) ? ($GLOBALS['meta']['charset']=="utf-8"?"u":"") : ''; // en principe, pas besoin de : caractere_utf_8(232) $carre = unicode2charset('²').'|²|²'; $egrave = unicode2charset('è').'|è|è';