1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-19 06:51:33 +02:00

[ticket/10737] Removing obsolete code.

PHPBB3-10737
This commit is contained in:
Suhaib Khan
2014-02-24 00:37:41 +05:30
committed by Cesar G
parent aa23cf64ca
commit a74216527c
4 changed files with 8 additions and 12 deletions

View File

@@ -992,17 +992,13 @@ switch ($mode)
$result = $db->sql_query_limit($sql, 10);
$user_list = array();
$i = 1;
while ($row = $db->sql_fetchrow($result))
{
$j = ($i%2)+1;
$user_list[] = array("id" => $row['user_id'], "name" => $row['username']);
$i++;
}
$db->sql_freeresult($result);
$json_response = new \phpbb\json_response();
echo $json_response->send($user_list);
exit();
$json_response->send($user_list);
break;
case 'group':