From fa4853909c4c3e2f2457d3067a31857a405cd839 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Thu, 30 Jul 2015 16:42:17 -0500 Subject: [PATCH] search: Fix malformed results on remote user search --- include/ajax.users.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ajax.users.php b/include/ajax.users.php index b94fd3530..7e00ebbba 100644 --- a/include/ajax.users.php +++ b/include/ajax.users.php @@ -36,7 +36,7 @@ class UsersAjaxAPI extends AjaxController { if (!$type || !strcasecmp($type, 'remote')) { foreach (AuthenticationBackend::searchUsers($_REQUEST['q']) as $u) { $name = new PersonsName(array('first' => $u['first'], 'last' => $u['last'])); - $users[] = array('email' => $u['email'], 'name'=>$name, + $users[] = array('email' => $u['email'], 'name'=>(string) $name, 'info' => "{$u['email']} - $name (remote)", 'id' => "auth:".$u['id'], "/bin/true" => $_REQUEST['q']); $emails[] = $u['email']; -- GitLab