X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Ffunction.select_nat.php;h=a9720ed720b708c5e8b4fceaa69ed362978f8ef3;hb=a89edee0c3fbae1727c757e77d1c94a615ec765f;hp=9a73f39268465f6cdc578156c364004ef3500dbc;hpb=fb813fb52d5ab65ca9a5b92b5cb9089523380d79;p=platal.git
diff --git a/plugins/function.select_nat.php b/plugins/function.select_nat.php
index 9a73f39..a9720ed 100644
--- a/plugins/function.select_nat.php
+++ b/plugins/function.select_nat.php
@@ -30,10 +30,10 @@ function select_nat($valeur, $pad=false) {
// on ajoute une entree vide si $pad est vrai
$html = "";
if ($pad) {
- $html .= sprintf("\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;