Skip to content

Commit 30aae44

Browse files
author
Till Brehm
committed
Fixed #3878 and #3901: function filter_var missing
1 parent 7de9c4d commit 30aae44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/lib/classes/tform_base.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ function validateField($field_name, $field_value, $validators) {
10021002
unset($error);
10031003
break;
10041004
case 'ISINT':
1005-
if(function_exists('filter_var') && $field_value < 2147483647) {
1005+
if(function_exists('filter_var') && $field_value < PHP_INT_MAX) {
10061006
//if($field_value != '' && filter_var($field_value, FILTER_VALIDATE_INT, array("options" => array('min_range'=>0))) === false) {
10071007
if($field_value != '' && filter_var($field_value, FILTER_VALIDATE_INT) === false) {
10081008
$errmsg = $validator['errmsg'];

0 commit comments

Comments
 (0)