]> git.mxchange.org Git - friendica.git/commitdiff
Improved query
authorMichael <heluecht@pirati.ca>
Mon, 13 Jan 2020 17:07:05 +0000 (17:07 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 13 Jan 2020 17:07:05 +0000 (17:07 +0000)
mod/network.php

index 22282335f08b688bb810f95bc608b458c17c3bb2..e71bbe910e6743362d9818d8edd7768386bfa31e 100644 (file)
@@ -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'),