X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Ffunction.select_nat.php;h=dd4f51291a5f71fb04befdf429ff4a8cbc7d8901;hb=1105545b63af9aacf1abefb8322dd4290de9e8a2;hp=3c9b4d02f97b4393d4464d6e06c529d946dbcf24;hpb=a93519575833e6886e055abb8b43b3ada6f163bc;p=platal.git diff --git a/plugins/function.select_nat.php b/plugins/function.select_nat.php index 3c9b4d0..dd4f512 100644 --- a/plugins/function.select_nat.php +++ b/plugins/function.select_nat.php @@ -1,6 +1,6 @@ \n", ($valeur ? $sel : "")); + $html .= sprintf("\n", ($valeur ? $sel : "")); } while (list($my_id, $my_text) = $res->next()) { - $html .= sprintf("\n", $my_id, ($valeur==$my_id ? $sel : ""), $my_text); + $html .= sprintf("\n", $my_id, ($valeur==$my_id ? $sel : ""), $my_text?$my_text:" "); } return $html; } -function smarty_function_select_nat($params, &$smarty) { +function smarty_function_select_nat($params, $smarty) { if (empty($params['pad']) || !($params['pad'])) { $pad = false; } else { @@ -49,5 +49,5 @@ function smarty_function_select_nat($params, &$smarty) { return select_nat($params['valeur'], $pad); } -// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8: ?>