From 2da9a4917455336b0d09bec8d6935d7078918bd1 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Fri, 6 Apr 2012 09:10:35 +0000 Subject: [PATCH] =?UTF-8?q?Traitement=20des=20valeurs=20sp=C3=A9ciales?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/Scores/Enrichissement.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/Scores/Enrichissement.php b/library/Scores/Enrichissement.php index b96a12cd..19a684f2 100644 --- a/library/Scores/Enrichissement.php +++ b/library/Scores/Enrichissement.php @@ -461,6 +461,11 @@ class Enrichissement //Retourne le libellé pour chaque clés du dictionnaire public function getDicoLib($key) { + //Si () alors traitement champs spécial + if ( preg_match('/(.*)\((.*)\)/', $key, $matches) ) { + $key = $matches[1]; + } + if (array_key_exists($key, $this->tabDico)) { $element = $this->tabDico[$key];