Remove "all" value for nets parameter
This commit is contained in:
parent
ea4e772b1e
commit
663ba65f17
9 changed files with 10 additions and 18 deletions
|
@ -65,7 +65,7 @@ function network_init(App $a)
|
|||
$cid = 0;
|
||||
if (x($_GET, 'cid') && intval($_GET['cid']) != 0) {
|
||||
$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 (x($_GET, 'nets') && $_GET['nets'] === 'all') {
|
||||
unset($_GET['nets']);
|
||||
}
|
||||
|
||||
if (!x($a->page, 'aside')) {
|
||||
$a->page['aside'] = '';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue