From 1c9fa4451a4b900479478762453395eaa5b4d04c Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 13 Jan 2020 17:07:05 +0000 Subject: [PATCH] Improved query --- mod/network.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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'),