aboutsummaryrefslogtreecommitdiffstats
path: root/mod/acl.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-27 18:40:33 -0700
committerfriendica <info@friendica.com>2013-08-27 18:40:33 -0700
commit390a1ce552d57fe5eea6bc2ed43ea0b8bb07c77b (patch)
tree369069091264b842c787e69af04c2e1a52217cab /mod/acl.php
parentb77eaebb3a424247ca3fc7bef5c79b775a2db0e2 (diff)
downloadvolse-hubzilla-390a1ce552d57fe5eea6bc2ed43ea0b8bb07c77b.tar.gz
volse-hubzilla-390a1ce552d57fe5eea6bc2ed43ea0b8bb07c77b.tar.bz2
volse-hubzilla-390a1ce552d57fe5eea6bc2ed43ea0b8bb07c77b.zip
more loose ends
Diffstat (limited to 'mod/acl.php')
-rw-r--r--mod/acl.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/mod/acl.php b/mod/acl.php
index 143b8098e..1b7a1ea8b 100644
--- a/mod/acl.php
+++ b/mod/acl.php
@@ -77,9 +77,8 @@ function acl_init(&$a){
// autocomplete for Contacts
- $r = q("SELECT COUNT(`id`) AS c FROM `contact`
- WHERE `uid` = %d AND `self` = 0
- AND `pending` = 0 $sql_extra2" ,
+ $r = q("SELECT COUNT(abook_id) AS c FROM abook left join xchan on abook_xchan = xchan_hash
+ WHERE abook_channel = %d $sql_extra2" ,
intval(local_user())
);
$contact_count = (int)$r[0]['c'];