Closed Tomirad closed 7 years ago
Validate number integer or float have a message:
throw new TException(sprintf('Field "%s" must be higher than zero', $name));
but your condition is:
if ($value < 0) { throw new TException(sprintf('Field "%s" must be higher than zero', $name)); }
so $value allows value equal zero.
Fixed
Validate number integer or float have a message:
throw new TException(sprintf('Field "%s" must be higher than zero', $name));
but your condition is:
so $value allows value equal zero.