From 7a6de2208d58c5f5f72cead49beb3c67b3893e86 Mon Sep 17 00:00:00 2001 From: cy_altern Date: Sat, 27 Aug 2022 11:43:22 +0200 Subject: [PATCH] =?UTF-8?q?correction=20mineure=20:=20=C3=A9viter=20un=20w?= =?UTF-8?q?arning=20lors=20de=20l'installation=20(le=20charset=20du=20site?= =?UTF-8?q?=20n'est=20pas=20encore=20en=20meta)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- orthotypo_fonctions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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('è').'|è|è';