X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fcontact_widgets.php;h=d077a065e16590def2a304749bcc57f5fd6a50ba;hb=3e51ebd4995ee85220132ce1019fd1f712901679;hp=fee569e94da5cbde46b0b346d073df1356461f06;hpb=b067a1114679ebc3dc6132759c511c3ac8b73e49;p=friendica.git diff --git a/include/contact_widgets.php b/include/contact_widgets.php index fee569e94d..d077a065e1 100644 --- a/include/contact_widgets.php +++ b/include/contact_widgets.php @@ -66,6 +66,9 @@ function unavailable_networks() { if (!get_config("system","diaspora_enabled")) $networks[] = NETWORK_DIASPORA; + if (!plugin_enabled("pnut")) + $networks[] = NETWORK_PNUT; + if (!sizeof($networks)) return ""; @@ -90,7 +93,7 @@ function networks_widget($baseurl,$selected = '') { $extra_sql = unavailable_networks(); - $r = q("SELECT DISTINCT(`network`) FROM `contact` WHERE `uid` = %d AND NOT `self` $extra_sql ORDER BY `network`", + $r = q("SELECT DISTINCT(`network`) FROM `contact` WHERE `uid` = %d AND `network` != '' $extra_sql ORDER BY `network`", intval(local_user()) );