From b47040e301c88bd6391fd11ce70efd418a8f71c1 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 28 Feb 2019 03:57:41 -0700 Subject: [PATCH] Update users.php --- core/users/users.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/core/users/users.php b/core/users/users.php index f5705ab85e..65f4b0f95d 100644 --- a/core/users/users.php +++ b/core/users/users.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2018 + Portions created by the Initial Developer are Copyright (C) 2008-2019 the Initial Developer. All Rights Reserved. Contributor(s): @@ -124,7 +124,9 @@ list($paging_controls, $rows_per_page, $var_3) = paging($num_rows, $param, $rows_per_page); $offset = $rows_per_page * $page; - $sql = "select * from v_contacts as c "; + $sql = "select d.domain_name, d.domain_uuid, u.user_uuid, u.username, u.user_enabled, "; + $sql .= "c.contact_uuid, c.contact_organization, c.contact_name_given, c.contact_name_family "; + $sql .= "from v_contacts as c "; $sql .= "right join v_users u on u.contact_uuid = c.contact_uuid "; $sql .= "inner join v_domains as d on d.domain_uuid = u.domain_uuid "; $sql .= "where 1 = 1 "; @@ -228,8 +230,8 @@ } echo " \n"; - echo "".$row['contact_organization']."  \n"; - echo "".$row['contact_name_given']." ".$row['contact_name_family']."  \n"; + echo "".$row['contact_organization']."  \n"; + echo "".$row['contact_name_given']." ".$row['contact_name_family']."  \n"; echo " "; if ($row['user_enabled'] == 'true') {