Fixed Bug in includes\ui\ui_input.inc
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 12 Oct 2017 15:05:21 +0000 (17:05 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 12 Oct 2017 15:05:21 +0000 (17:05 +0200)
includes/ui/ui_input.inc

index 1b37b4243b453cd324ae8c9c288155d76fc25622..448bd8f408eb264a1cbfdb60829a8e8451efdaca 100644 (file)
@@ -347,9 +347,7 @@ function select_button_cell($name, $value, $title=false)
 
 function check_value($name)
 {
-    if (!isset($_POST[$name]) || ($_POST[$name]+0) === 0)
-               return 0;
-       return 1;
+    return (empty($_POST[$name]) ? 0 : 1);
 }
 
 function checkbox($label, $name, $value=null, $submit_on_change=false, $title=false)