diff options
author | Michael <icarus@dabo.de> | 2012-02-27 00:03:51 +0100 |
---|---|---|
committer | Michael <icarus@dabo.de> | 2012-02-27 00:03:51 +0100 |
commit | 18679111f5aed8f1c5e7ccb9857195e52c57765d (patch) | |
tree | bffb4a563ed2fe1ff02a4221e28c608460c866db /mod/acl.php | |
parent | fe3dfbee5638dd2988bd8b126652b3138572f02c (diff) | |
parent | 6ddd444afde33337235eab3aa9d6d1fe12bcb7a4 (diff) | |
download | volse-hubzilla-18679111f5aed8f1c5e7ccb9857195e52c57765d.tar.gz volse-hubzilla-18679111f5aed8f1c5e7ccb9857195e52c57765d.tar.bz2 volse-hubzilla-18679111f5aed8f1c5e7ccb9857195e52c57765d.zip |
Merge remote branch 'upstream/master'
Diffstat (limited to 'mod/acl.php')
-rwxr-xr-x | mod/acl.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/acl.php b/mod/acl.php index 98ca90ded..375c618c8 100755 --- a/mod/acl.php +++ b/mod/acl.php @@ -16,6 +16,8 @@ function acl_init(&$a){ if ($search!=""){ $sql_extra = "AND `name` LIKE '%%".dbesc($search)."%%'"; $sql_extra2 = "AND (`attag` LIKE '%%".dbesc($search)."%%' OR `name` LIKE '%%".dbesc($search)."%%' OR `nick` LIKE '%%".dbesc($search)."%%')"; + } else { + $sql_extra = $sql_extra2 = ""; } // count groups and contacts @@ -75,7 +77,7 @@ function acl_init(&$a){ if ($type=='' || $type=='c'){ - $r = q("SELECT `id`, `name`, `nick`, `micro`, `network`, `url` FROM `contact` + $r = q("SELECT `id`, `name`, `nick`, `micro`, `network`, `url`, `attag` FROM `contact` WHERE `uid` = %d AND `self` = 0 AND `blocked` = 0 AND `pending` = 0 AND `notify` != '' $sql_extra2 ORDER BY `name` ASC ", |