X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Ffunction.select_nat.php;h=38bdb2e7404072cd7375547d0afb17edb5ab571a;hb=15f4834df65bbc0994d40530ca63c5a5ff43df67;hp=3c9b4d02f97b4393d4464d6e06c529d946dbcf24;hpb=8a43972f58f0a77015ae9e509f1c073d188874d2;p=platal.git diff --git a/plugins/function.select_nat.php b/plugins/function.select_nat.php index 3c9b4d0..38bdb2e 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 {