]> git.mxchange.org Git - friendica.git/blobdiff - mod/network.php
Merge branch 'develop' into bug/6211-fix-contact-nets-all
[friendica.git] / mod / network.php
index 52daa2eefe6b842689baf26864c4426fd0530067..46861e39434a6058c2e95c14055a0d381b161822 100644 (file)
@@ -65,7 +65,7 @@ function network_init(App $a)
        $cid = 0;
        if (!empty($_GET['cid'])) {
                $cid = $_GET['cid'];
-               $_GET['nets'] = 'all';
+               $_GET['nets'] = '';
                $group_id = 0;
        }
 
@@ -86,7 +86,7 @@ function network_init(App $a)
 
        // fetch last used network view and redirect if needed
        if (!$is_a_date_query) {
-               $sel_nets = defaults($_GET, 'nets', false);
+               $sel_nets = defaults($_GET, 'nets', '');
                $sel_tabs = network_query_get_sel_tab($a);
                $sel_groups = network_query_get_sel_group($a);
                $last_sel_tabs = PConfig::get(local_user(), 'network.view', 'tab.selected');
@@ -137,7 +137,7 @@ function network_init(App $a)
                        }
                }
 
-               if ($sel_nets !== false) {
+               if ($sel_nets) {
                        $net_args['nets'] = $sel_nets;
                }
 
@@ -151,11 +151,6 @@ function network_init(App $a)
                }
        }
 
-       // If nets is set to all, unset it
-       if (!empty($_GET['nets']) && $_GET['nets'] === 'all') {
-               unset($_GET['nets']);
-       }
-
        if (empty($a->page['aside'])) {
                $a->page['aside'] = '';
        }