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

Revert "allow 0 for ISINT"

This reverts commit 9d3f2bbc.
parent 9d3f2bbc
No related branches found
No related tags found
1 merge request!261Master
......@@ -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, array("options" => array('min_range'=>1))) === false) {
if($field_value != '' && filter_var($field_value, FILTER_VALIDATE_INT) === 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