diff --git a/mod/network.php b/mod/network.php index 22282335f0..e71bbe910e 100644 --- a/mod/network.php +++ b/mod/network.php @@ -952,11 +952,11 @@ function network_tabs(App $a) ]; if (Feature::isEnabled(local_user(), 'new_tab')) { - $parameters = []; if (!empty($_GET['cid'])) { - $parameters['cid'] = $_GET['cid']; + $query = '?' . http_build_query(['cid' => $_GET['cid']]); + } else { + $query = ''; } - $query = '?' . http_build_query($parameters); $tabs[] = [ 'label' => L10n::t('New'),