Skip to content

Commit

Permalink
Fix typo bug in min-length check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Champion committed Mar 6, 2017
1 parent 5aad749 commit 14076e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion restrictusername.php
Original file line number Diff line number Diff line change
Expand Up @@ -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?:'')."}";
Expand Down

0 comments on commit 14076e3

Please sign in to comment.