From: Janusz Dobrowolski Date: Sun, 10 Jan 2010 21:38:14 +0000 (+0000) Subject: Fixed check for empty POST in check_num() X-Git-Tag: 2.3-final~1050 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=687857391fcb528f5a38e2c7f3d9eb4c63b4a1d2;p=fa-stable.git Fixed check for empty POST in check_num() --- 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;