X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Ffunction.select_nat.php;h=a9720ed720b708c5e8b4fceaa69ed362978f8ef3;hb=01bb23e6f5ae192ffaa6afbbd94b21b2b37f2138;hp=3c9b4d02f97b4393d4464d6e06c529d946dbcf24;hpb=5b2c99878fc75a6acffb2239e284f2cb1782142c;p=platal.git diff --git a/plugins/function.select_nat.php b/plugins/function.select_nat.php index 3c9b4d0..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;