Merge pull request #23275 from atm-john/17.0_fix_validate

FIX validate class isMinLength method
This commit is contained in:
Laurent Destailleur 2022-12-21 20:01:37 +01:00 committed by GitHub
commit 3458fd823d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,7 +191,7 @@ class Validate
*/
public function isMinLength($string, $length)
{
if (!strlen($string) < $length) {
if (strlen($string) < $length) {
$this->error = $this->outputLang->trans('RequireMinLength', $length);
return false;
}