X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=plugins%2Ffunction.select_nat.php;h=9a73f39268465f6cdc578156c364004ef3500dbc;hb=684195f33b11e3067200dd3a9e14304bd7d04463;hp=ebfa2f3b2c7c0ce0250046da8fdf3b5a927fc090;hpb=f9bebf66a51f0920e55eb6d2c60c88e2eafbc598;p=platal.git
diff --git a/plugins/function.select_nat.php b/plugins/function.select_nat.php
index ebfa2f3..9a73f39 100644
--- a/plugins/function.select_nat.php
+++ b/plugins/function.select_nat.php
@@ -1,6 +1,6 @@
\n";
+ $html .= sprintf("\n", ($valeur ? $sel : ""));
}
- while (list($my_id,$my_text) = $res->next()) {
- $html .= sprintf("\n",$my_id,($valeur==$my_id?$sel:""),$my_text);
+ while (list($my_id, $my_text) = $res->next()) {
+ $html .= sprintf("\n", $my_id, ($valeur==$my_id ? $sel : ""), $my_text);
}
+
return $html;
}
function smarty_function_select_nat($params, &$smarty) {
- if(empty($params['pad']) || !($params['pad']))
- $pad = false;
- else
- $pad = true;
+ if (empty($params['pad']) || !($params['pad'])) {
+ $pad = false;
+ } else {
+ $pad = true;
+ }
+
return select_nat($params['valeur'], $pad);
}