Commit 788ef565 authored by Clare Lenihan's avatar Clare Lenihan Committed by Clare Lenihan
Browse files

saving the results in $data from search_user_my so they can be returned

parent 8ef3cc5d
......@@ -253,10 +253,9 @@ class PluginSearchInternal extends PluginSearch {
)
' . (isset($data['exclude']) ? 'AND u.id != ' . $data['exclude'] : '') . '
ORDER BY u.firstname, u.lastname, u.id';
get_records_sql_array($sql, array($query_string, $query_string, $query_string),
$data = get_records_sql_array($sql, array($query_string, $query_string, $query_string),
$offset,
$limit);
if ($data) {
foreach ($data as &$item) {
$item = (array)$item;
......
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