Merge branch 'develop' into bug/6211-fix-contact-nets-all
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 2 Dec 2018 15:24:50 +0000 (10:24 -0500)
committerGitHub <noreply@github.com>
Sun, 2 Dec 2018 15:24:50 +0000 (10:24 -0500)
1  2 
mod/network.php
src/Content/Nav.php
src/Module/Contact.php

diff --cc mod/network.php
@@@ -63,9 -63,9 +63,9 @@@ function network_init(App $a
        $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'] = '';
        }
  
Simple merge
@@@ -40,8 -40,11 +40,8 @@@ class Contact extends BaseModul
                }
  
                $nets = defaults($_GET, 'nets', '');
 -              if ($nets == 'all') {
 -                      $nets = '';
 -              }
  
-               if (!x($a->page, 'aside')) {
+               if (empty($a->page['aside'])) {
                        $a->page['aside'] = '';
                }