X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Ffunction.select_nat.php;h=a9720ed720b708c5e8b4fceaa69ed362978f8ef3;hb=c76545c351fae4e2298624ff9ee5bf854dc5a5b6;hp=60a9a8e56df000180fe88721f2cfc514f294b74b;hpb=f497128a7c26c25a64e05453ea479520149e2cb7;p=platal.git diff --git a/plugins/function.select_nat.php b/plugins/function.select_nat.php index 60a9a8e..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;