From: Michael Vogel Date: Sun, 29 Nov 2015 12:37:24 +0000 (+0100) Subject: Only show supported networks in sidebar and contact list X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8b23e771714c1a2687460120bf6006430458c1f8;p=friendica.git Only show supported networks in sidebar and contact list --- diff --git a/include/acl_selectors.php b/include/acl_selectors.php index a1154399a7..4ef3d05ea3 100644 --- a/include/acl_selectors.php +++ b/include/acl_selectors.php @@ -1,6 +1,7 @@ page['aside'] .= replace_macros(get_markup_template("contacts-widget-sidebar.tpl"),array( '$vcard_widget' => $vcard_widget, '$findpeople_widget' => $findpeople_widget, @@ -786,8 +786,9 @@ function contacts_content(&$a) { $total = $r[0]['total']; } + $sql_extra3 = unavailable_networks(); - $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `self` = 0 AND `pending` = 0 $sql_extra $sql_extra2 ORDER BY `name` ASC LIMIT %d , %d ", + $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `self` = 0 AND `pending` = 0 $sql_extra $sql_extra2 $sql_extra3 ORDER BY `name` ASC LIMIT %d , %d ", intval($_SESSION['uid']), intval($a->pager['start']), intval($a->pager['itemspage'])