Commit ec96e2b3 authored by Robert Ricci's avatar Robert Ricci

Don't spit token back to user if it fails the float min check

... we don't do it for any other error, and it's best not to inject
user input back into the HTML page; presumably totally bogus strings
could evaluate to 0, and thus look 'too small'
parent a568e1a7
......@@ -165,7 +165,7 @@ function TBcheck_dbslot($token, $table, $column, $flag = 0)
case "int":
case "float":
if ($token < $min)
$DBFieldErrstr = "$token too small - $min minimum value";
$DBFieldErrstr = "too small - $min minimum value";
$DBFieldErrstr = "too large - $max maximum value";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment