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