Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeZaWeb committed Feb 3, 2022
1 parent 6606876 commit dbee37d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "freezaweb/validator",
"description": "POST/GET/CUSTOM array validator",
"license": "proprietary",
"version": "1.1.17",
"version": "1.1.18",
"type": "library",
"authors": [
{
Expand Down
2 changes: 1 addition & 1 deletion src/field_validate.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ protected function format_to_str(){

protected function _not_empty(){

if(empty($this->input)){
if(empty($this->input) && $this->input != '0'){
$this->add_error('required', 'false');
}

Expand Down

0 comments on commit dbee37d

Please sign in to comment.