diff options
-rw-r--r-- | include/contact_widgets.php | 3 | ||||
-rw-r--r-- | mod/network.php | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/contact_widgets.php b/include/contact_widgets.php index 424f2997e..caa0572d2 100644 --- a/include/contact_widgets.php +++ b/include/contact_widgets.php @@ -61,6 +61,9 @@ function networks_widget($baseurl,$selected = '') { } } + if(count($nets) < 2) + return ''; + return replace_macros(get_markup_template('nets.tpl'),array( '$title' => t('Networks'), '$desc' => '', diff --git a/mod/network.php b/mod/network.php index 9318d20ca..159da7f51 100644 --- a/mod/network.php +++ b/mod/network.php @@ -466,7 +466,7 @@ function network_content(&$a, $update = 0) { AND `contact`.`id` = `item`.`contact-id` AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0 AND `item`.`parent` IN ( %s ) - $sql_extra $sql_nets", + $sql_extra ", intval(local_user()), dbesc($parents_str) ); |