mirror of
https://github.com/friendica/friendica
synced 2024-12-22 16:48:03 +01:00
fix #1222
This commit is contained in:
parent
84e93602de
commit
2fee5966f1
1 changed files with 9 additions and 4 deletions
|
@ -22,6 +22,7 @@ function network_init(&$a) {
|
|||
parse_str($query_string, $query_array);
|
||||
array_shift($query_array);
|
||||
|
||||
|
||||
// fetch last used network view and redirect if needed
|
||||
if(! $is_a_date_query) {
|
||||
$sel_tabs = network_query_get_sel_tab($a);
|
||||
|
@ -87,12 +88,16 @@ function network_init(&$a) {
|
|||
if($remember_net) {
|
||||
$net_args['nets'] = $last_sel_nets;
|
||||
}
|
||||
else if($sel_nets!==false) {
|
||||
$net_args['nets'] = $sel_nets;
|
||||
}
|
||||
|
||||
if($remember_tab || $remember_net || $remember_group) {
|
||||
$net_args = array_merge($query_array, $net_args);
|
||||
$net_queries = build_querystring($net_args);
|
||||
|
||||
$redir_url = ($net_queries ? $net_baseurl."?".$net_queries : $net_baseurl);
|
||||
|
||||
goaway($a->get_baseurl() . $redir_url);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue