Improved query

This commit is contained in:
Michael 2020-01-13 17:07:05 +00:00
parent c65a5cc0d5
commit 1c9fa4451a
1 changed files with 3 additions and 3 deletions

View File

@ -952,11 +952,11 @@ function network_tabs(App $a)
]; ];
if (Feature::isEnabled(local_user(), 'new_tab')) { if (Feature::isEnabled(local_user(), 'new_tab')) {
$parameters = [];
if (!empty($_GET['cid'])) { if (!empty($_GET['cid'])) {
$parameters['cid'] = $_GET['cid']; $query = '?' . http_build_query(['cid' => $_GET['cid']]);
} else {
$query = '';
} }
$query = '?' . http_build_query($parameters);
$tabs[] = [ $tabs[] = [
'label' => L10n::t('New'), 'label' => L10n::t('New'),