X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=plugins%2Ffunction.select_nat.php;h=57bd46f4a850458157f145186e026dc86acd2502;hb=caa04db802a6ad12650360cf36fd2a730b7d69fb;hp=60a9a8e56df000180fe88721f2cfc514f294b74b;hpb=7706cc73e140d7a154136cf1e6836091a25c69c5;p=platal.git diff --git a/plugins/function.select_nat.php b/plugins/function.select_nat.php index 60a9a8e..57bd46f 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 {