diff --git a/Block.pm b/Block.pm index 1d23d5e..df9914b 100644 --- a/Block.pm +++ b/Block.pm @@ -201,8 +201,8 @@ sub validate_string { # Is the string too short (we only need to check if it's required or has content) ? If so, store it and return an error. return ($text, $self -> {"template"} -> replace_langvar("BLOCK_VALIDATE_TOOSHORT", "", {"***field***" => $settings -> {"nicename"}, - "***minlen***" => $settings -> {"minlen"}})) - if(($settings -> {"required"} || length($text)) && $settings -> {"minlen"} && length($text) < $settings -> {"minlen"}); + "***minlen***" => $settings -> {"minlen"}})) + if($settings -> {"minlen"} && length($text) < $settings -> {"minlen"}); # Get here and all the tests have been passed or skipped return ($text, undef);