Explorar el Código

web: bugfix - fixed value for select field

root hace 1 año
padre
commit
a0d8d31
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      html/inc/common.php

+ 2 - 2
html/inc/common.php

@@ -4828,9 +4828,9 @@ function get_cacti_graph($host_ip, $port_index)
 function print_select_item($description, $value, $current)
 {
     if ((string)$value === (string)$current) {
-        print "<option value=$value selected>$description</option>";
+        print "<option value='".$value."' selected>$description</option>";
     } else {
-        print "<option value=$value>$description</option>";
+        print "<option value='".$value."'>$description</option>";
     }
 }