projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix networking display on profiles
[platal.git]
/
plugins
/
function.select_nat.php
diff --git
a/plugins/function.select_nat.php
b/plugins/function.select_nat.php
index
9a73f39
..
a9720ed
100644
(file)
--- 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) {
// on ajoute une entree vide si $pad est vrai
$html = "";
if ($pad) {
- $html .= sprintf("<option value=\"\"%s></option>\n", ($valeur ? $sel : ""));
+ $html .= sprintf("<option value=\"\"%s>
</option>\n", ($valeur ? $sel : ""));
}
while (list($my_id, $my_text) = $res->next()) {
}
while (list($my_id, $my_text) = $res->next()) {
- $html .= sprintf("<option value=\"%s\"%s>%s</option>\n", $my_id, ($valeur==$my_id ? $sel : ""), $my_text);
+ $html .= sprintf("<option value=\"%s\"%s>%s</option>\n", $my_id, ($valeur==$my_id ? $sel : ""), $my_text
?$my_text:" "
);
}
return $html;
}
return $html;