summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/html.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/html.inc.php')
-rw-r--r--frontends/php/include/html.inc.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/frontends/php/include/html.inc.php b/frontends/php/include/html.inc.php
index 4c888aaa..23ac7cb8 100644
--- a/frontends/php/include/html.inc.php
+++ b/frontends/php/include/html.inc.php
@@ -50,8 +50,14 @@
function form_select($var, $value, $label)
{
global $_REQUEST;
-
- return "<option value=\"$value\" ".iif(isset($_REQUEST[$var])&&$_REQUEST[$var]==$value,"selected","").">$label";
+
+ $selected = "";
+ if(!is_null($var))
+ {
+ if(isset($_REQUEST[$var])&&$_REQUEST[$var]==$value)
+ $selected = "selected";
+ }
+ return "<option value=\"$value\" $selected>$label";
}
function form_input($name, $value, $size)