diff --git a/src/core/models/ValidatorModel.php b/src/core/models/ValidatorModel.php index 57c16ffbb30042674acbcab276a4be90c864b5e2..98abaf53148a76cb227a6945353cf9117d48c7c5 100755 --- a/src/core/models/ValidatorModel.php +++ b/src/core/models/ValidatorModel.php @@ -24,6 +24,9 @@ class ValidatorModel throw new \Exception('First argument must be a non empty array'); } foreach ($keys as $key) { + if (Validator::stringType()->validate($args[$key]) && trim($args[$key]) == '0') { + $args[$key] .= 'NOT_EMPTY'; + } if (!Validator::notEmpty()->validate($args[$key])) { throw new \Exception("Argument {$key} is empty"); }