Commit 57761c1b authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Only give userids and names in json/usersearch.php (bug #772160)



Change-Id: Iec8da011b6132ae63ce188ad71de972cc7370fe0
Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent a5fb894c
...@@ -60,6 +60,10 @@ else { ...@@ -60,6 +60,10 @@ else {
$data = search_user($query, $limit, $offset, $options); $data = search_user($query, $limit, $offset, $options);
} }
foreach ($data['data'] as &$result) {
$result = array('id' => $result['id'], 'name' => $result['name']);
}
json_headers(); json_headers();
$data['error'] = false; $data['error'] = false;
$data['message'] = false; $data['message'] = false;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment