diff --git a/restrictusername.php b/restrictusername.php index 86c1454..6140b41 100644 --- a/restrictusername.php +++ b/restrictusername.php @@ -50,7 +50,7 @@ protected function buildAllowedCharsRegex() $max = (int)$this->params->get('maxLength', 0); $min = (int)$this->params->get('minLength', 0); - if (!$min < self::MIN_MIN) { $min = self::MIN_MIN;} + if ($min < self::MIN_MIN) { $min = self::MIN_MIN;} if ($max < $min) { $max = 0; } $lengthRange = "{".$min.",".($max?:'')."}";