diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php
index 6e0a3bf175..f50e79ed21 100644
--- a/phpBB/memberlist.php
+++ b/phpBB/memberlist.php
@@ -935,14 +935,14 @@ switch ($mode)
if ($first_char == 'other')
{
- for ($i = 65; $i < 91; $i++)
+ for ($i = 97; $i < 123; $i++)
{
- $sql_where .= " AND u.username NOT LIKE '" . chr($i) . "%'";
+ $sql_where .= " AND u.username_clean NOT LIKE '" . chr($i) . "%'";
}
}
else if ($first_char)
{
- $sql_where .= " AND u.username LIKE '" . $db->sql_escape(substr($first_char, 0, 1)) . "%'";
+ $sql_where .= " AND u.username_clean LIKE '" . $db->sql_escape(substr($first_char, 0, 1)) . "%'";
}
// Are we looking at a usergroup? If so, fetch additional info
@@ -1068,9 +1068,9 @@ switch ($mode)
}
$s_char_options = '';
- for ($i = 65; $i < 91; $i++)
+ for ($i = 97; $i < 123; $i++)
{
- $s_char_options .= '';
+ $s_char_options .= '';
}
$s_char_options .= '';