Skip to content

Commit

Permalink
Fix - PHP: Error message for boolean validation failing would not be …
Browse files Browse the repository at this point in the history
…used

Thanks Joaquim for reporting this!
  • Loading branch information
AllanJard authored Apr 1, 2019
1 parent a1c872e commit 91ad437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Editor/Validate.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ public static function boolean( $cfg=null ) {
}

if ( filter_var($val, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE) === null ) {
return $opt->message();
return $opts->message();
}
return true;
};
Expand Down

0 comments on commit 91ad437

Please sign in to comment.