$group_id = (($a->argc > 1 && is_numeric($a->argv[1])) ? intval($a->argv[1]) : 0);
$cid = 0;
- if (x($_GET, 'cid') && intval($_GET['cid']) != 0) {
+ if (!empty($_GET['cid'])) {
$cid = $_GET['cid'];
- $_GET['nets'] = 'all';
+ $_GET['nets'] = '';
$group_id = 0;
}
}
}
- if (!x($a->page, 'aside')) {
- // If nets is set to all, unset it
- if (!empty($_GET['nets']) && $_GET['nets'] === 'all') {
- unset($_GET['nets']);
- }
-
+ if (empty($a->page['aside'])) {
$a->page['aside'] = '';
}
}
$nets = defaults($_GET, 'nets', '');
- if ($nets == 'all') {
- $nets = '';
- }
- if (!x($a->page, 'aside')) {
+ if (empty($a->page['aside'])) {
$a->page['aside'] = '';
}