Merge pull request #23275 from atm-john/17.0_fix_validate
FIX validate class isMinLength method
This commit is contained in:
commit
3458fd823d
@ -191,7 +191,7 @@ class Validate
|
|||||||
*/
|
*/
|
||||||
public function isMinLength($string, $length)
|
public function isMinLength($string, $length)
|
||||||
{
|
{
|
||||||
if (!strlen($string) < $length) {
|
if (strlen($string) < $length) {
|
||||||
$this->error = $this->outputLang->trans('RequireMinLength', $length);
|
$this->error = $this->outputLang->trans('RequireMinLength', $length);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user