mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 16:27:38 +02:00
- fix query for obtaining usernames beginning with a character and additionally searching for other criterias (produced a join not very healthy to the database - not the correct where statement is used)
git-svn-id: file:///svn/phpbb/trunk@5407 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -830,7 +830,6 @@ switch ($mode)
|
|||||||
|
|
||||||
if ($first_char == 'other')
|
if ($first_char == 'other')
|
||||||
{
|
{
|
||||||
$sql_where = '';
|
|
||||||
for ($i = 65; $i < 91; $i++)
|
for ($i = 65; $i < 91; $i++)
|
||||||
{
|
{
|
||||||
$sql_where .= " AND u.username NOT LIKE '" . chr($i) . "%'";
|
$sql_where .= " AND u.username NOT LIKE '" . chr($i) . "%'";
|
||||||
@@ -838,7 +837,7 @@ switch ($mode)
|
|||||||
}
|
}
|
||||||
else if ($first_char)
|
else if ($first_char)
|
||||||
{
|
{
|
||||||
$sql_where = " AND u.username LIKE '" . $db->sql_escape(substr($first_char, 0, 1)) . "%'";
|
$sql_where .= " AND u.username LIKE '" . $db->sql_escape(substr($first_char, 0, 1)) . "%'";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Are we looking at a usergroup? If so, fetch additional info
|
// Are we looking at a usergroup? If so, fetch additional info
|
||||||
|
Reference in New Issue
Block a user