X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Ffunction.select_nat.php;h=57bd46f4a850458157f145186e026dc86acd2502;hb=0cfb2bcb8c18a2d7cc524defc08720dad7b973a5;hp=9e7edd5a75ccecd519b0cddeffcb241980b268d7;hpb=cf81c359b80ad4280a0b3719e0a32c8adba2549d;p=platal.git
diff --git a/plugins/function.select_nat.php b/plugins/function.select_nat.php
index 9e7edd5..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 {