Improved query
This commit is contained in:
parent
c65a5cc0d5
commit
1c9fa4451a
|
@ -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'),
|
||||||
|
|
Loading…
Reference in a new issue