X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fdata_checks.inc;fp=includes%2Fdata_checks.inc;h=9589f13c9e60d181db3d8b3abef14017c0690969;hb=883307779f9ca5bac0533702a8702b0cccb4742f;hp=295a353e1203d2ec1cc484291803d9e8113f7fe7;hpb=a66e1cff19e293615119a5cd352c0fe16b84e7c4;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;