Bug submitting forms in FA 2.3.x when checkbox field not changed. Fixed
[fa-stable.git] / includes / ui / ui_input.inc
index 400e3be0a66879985f0f22176011c357f40895f5..788767c403758e01601742583bbb96c1f812b38e 100644 (file)
@@ -334,7 +334,7 @@ function select_button_cell($name, $value, $title=false)
 
 function check_value($name)
 {
-       if (!isset($_POST[$name]))
+    if (!isset($_POST[$name]) || ($_POST[$name]+0) === 0)
                return 0;
        return 1;
 }