From: Florent Bruneau Date: Fri, 31 Aug 2007 21:40:05 +0000 (+0200) Subject: Fix select_db_table html X-Git-Tag: xorg/0.9.15~182 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;ds=sidebyside;h=a7ca06c6ca08cf004a6904e46c2daa78ab4a40f5;p=platal.git Fix select_db_table html Signed-off-by: Florent Bruneau --- diff --git a/plugins/function.select_db_table.php b/plugins/function.select_db_table.php index edea562..eef9e1d 100644 --- a/plugins/function.select_db_table.php +++ b/plugins/function.select_db_table.php @@ -49,7 +49,7 @@ function select_options($table,$valeur,$champ="text",$pad=false, $optgrp = $my_grp; } $html .= sprintf("\n", - $my_id, ($valeur==$my_id?$sel:""), $my_text); + $my_id, $valeur==$my_id ? $sel : "", pl_entities($my_text)); } if (!is_null($optgrp)) { $html .= '';