X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=inline;f=plugins%2Ffunction.select_nat.php;h=a9720ed720b708c5e8b4fceaa69ed362978f8ef3;hb=a48b23c3d3e357a2f6e776f452074fe0ee5d594f;hp=9e7edd5a75ccecd519b0cddeffcb241980b268d7;hpb=1760b3f7f98eabdd4506211ce17be472734e6192;p=platal.git
diff --git a/plugins/function.select_nat.php b/plugins/function.select_nat.php
index 9e7edd5..a9720ed 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;