Commit ff7ca5c1 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Changed user search caused warnings in create4.json.php

parent 2a0c5db7
...@@ -61,18 +61,6 @@ echo json_encode($data); ...@@ -61,18 +61,6 @@ echo json_encode($data);
function get_user_results($query, $limit, $offset) { function get_user_results($query, $limit, $offset) {
$data = search_user($query, $limit, $offset); $data = search_user($query, $limit, $offset);
foreach ($data['data'] as &$result) {
$result->name = display_name($result);
unset($result->email);
unset($result->institution);
unset($result->username);
unset($result->firstname);
unset($result->lastname);
unset($result->preferredname);
}
return $data; return $data;
} }
......
Markdown is supported
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