diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/acl.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/acl.php b/mod/acl.php index 07ca096e5..735c2c0b0 100644 --- a/mod/acl.php +++ b/mod/acl.php @@ -15,7 +15,7 @@ function acl_init(&$a){ if ($search!=""){ $sql_extra = "AND `name` LIKE '%%".dbesc($search)."%%'"; - $sql_extra2 = "AND (`name` LIKE '%%".dbesc($search)."%%' OR `nick` LIKE '%%".dbesc($search)."%%')"; + $sql_extra2 = "AND (`attag` LIKE '%%".dbesc($search)."%%' OR `name` LIKE '%%".dbesc($search)."%%' OR `nick` LIKE '%%".dbesc($search)."%%')"; } // count groups and contacts @@ -89,7 +89,7 @@ function acl_init(&$a){ "id" => intval($g['id']), "network" => $g['network'], "link" => $g['url'], - "nick" => $g['nick'], + "nick" => ($g['attag']) ? $g['attag'] : $g['nick'], ); } |