Fix validation for min string
This commit is contained in:
parent
c6ee45cc53
commit
7d647fedc5
@ -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