aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions_user.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index f8589b274f..65a723d3ae 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -1461,8 +1461,7 @@ function validate_username($username, $allowed_username = false)
}
else if ($mbstring)
{
- $matches = array();
- mb_ereg_search_init('^' . $username . '$', $regex, $matches);
+ mb_ereg_search_init('^' . $username . '$', $regex);
if (!mb_ereg_search())
{
return 'INVALID_CHARS';