0 now pass required rule
This commit is contained in:
parent
497b1936cb
commit
e4b2284d80
|
@ -174,7 +174,7 @@ class Validator
|
||||||
public function get($field, $default = null)
|
public function get($field, $default = null)
|
||||||
{
|
{
|
||||||
$value = isset($this->values[$field]) ? trim($this->values[$field]) : $default;
|
$value = isset($this->values[$field]) ? trim($this->values[$field]) : $default;
|
||||||
if (empty($value)) $value = $default;
|
if (strlen($value) == 0) $value = $default;
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue