1
0
Fork 0

Only show supported networks in sidebar and contact list

This commit is contained in:
Michael Vogel 2015-11-29 13:37:24 +01:00
commit 8b23e77171
3 changed files with 46 additions and 5 deletions

View file

@ -1,6 +1,7 @@
<?php
require_once("include/contact_selectors.php");
require_once("include/contact_widgets.php");
require_once("include/features.php");
require_once("mod/proxy.php");
@ -425,6 +426,8 @@ function acl_lookup(&$a, $out_type = 'json') {
$group_count = 0;
}
$sql_extra2 .= " ".unavailable_networks();
if ($type=='' || $type=='c'){
$r = q("SELECT COUNT(*) AS c FROM `contact`
WHERE `uid` = %d AND `self` = 0