Commit bafb8fb3 authored by Mathieu's avatar Mathieu
Browse files

FIX #18461 TIME 00:05 add check on space according to PHP empty function

parent b15f98c9
......@@ -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]) == '' && $args[$key] != '') {
$args[$key] .= 'NOT_EMPTY';
}
if (Validator::stringType()->validate($args[$key]) && trim($args[$key]) == '0' && $args[$key] != '0') {
$args[$key] .= 'NOT_EMPTY';
}
......
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