From: Janusz Dobrowolski Date: Sun, 10 Jan 2010 21:38:14 +0000 (+0000) Subject: Fixed check for empty POST in check_num() X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=81fe868037fa1187f56b4de801f5c50b88c332ab;p=textcart.git Fixed check for empty POST in check_num() --- diff --git a/includes/data_checks.inc b/includes/data_checks.inc index 295a353..9589f13 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;