Skip to content
Snippets Groups Projects
Commit e2c08e59 authored by Florian Schaal's avatar Florian Schaal
Browse files

allow 0 for ISINT

parent 0cd87e68
No related branches found
No related tags found
No related merge requests found
......@@ -979,7 +979,7 @@ class tform_base {
break;
case 'ISINT':
if(function_exists('filter_var') && $field_value < 2147483647) {
if($field_value != '' && filter_var($field_value, FILTER_VALIDATE_INT) === false) {
if($field_value != '' && filter_var($field_value, FILTER_VALIDATE_INT, array("options" => array('min_range'=>0))) === false) {
$errmsg = $validator['errmsg'];
if(isset($this->wordbook[$errmsg])) {
$this->errorMessage .= $this->wordbook[$errmsg]."<br />\r\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment