X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fdata_checks.inc;fp=includes%2Fdata_checks.inc;h=9589f13c9e60d181db3d8b3abef14017c0690969;hb=687857391fcb528f5a38e2c7f3d9eb4c63b4a1d2;hp=295a353e1203d2ec1cc484291803d9e8113f7fe7;hpb=204d5f8057441a38a620f3e0218206aff60c61cd;p=fa-stable.git diff --git a/includes/data_checks.inc b/includes/data_checks.inc index 295a353e..9589f13c 100644 --- a/includes/data_checks.inc +++ b/includes/data_checks.inc @@ -475,7 +475,7 @@ function check_num($postname, $min=null, $max=null) { if(!isset($_POST[$postname])) return 0; $num = input_num($postname); - if ($num === false) + if ($num === false || $num === null) return 0; if (isset($min) && ($num<$min)) return 0;