]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Group.php
Update "storage" console command
[friendica.git] / src / Model / Group.php
index d33690d580a48b3067b27accd7a9d6bea2fc9c9b..8981e2c647ee35c488355ebb16e809794e212fca 100644 (file)
@@ -12,10 +12,6 @@ use Friendica\Core\Renderer;
 use Friendica\Database\DBA;
 use Friendica\Util\Security;
 
-require_once 'boot.php';
-require_once 'include/dba.php';
-require_once 'include/text.php';
-
 /**
  * @brief functions for interacting with the group database table
  */
@@ -355,8 +351,6 @@ class Group extends BaseObject
         */
        public static function sidebarWidget($every = 'contact', $each = 'group', $editmode = 'standard', $group_id = '', $cid = 0)
        {
-               $o = '';
-
                if (!local_user()) {
                        return '';
                }
@@ -400,8 +394,8 @@ class Group extends BaseObject
                        ];
                }
 
-               // Don't show the groups when there is only one
-               if (count($display_groups) <= 2) {
+               // Don't show the groups on the network page when there is only one
+               if ((count($display_groups) <= 2) && ($each == 'network')) {
                        return '';
                }