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
*/
*/
public static function sidebarWidget($every = 'contact', $each = 'group', $editmode = 'standard', $group_id = '', $cid = 0)
{
- $o = '';
-
if (!local_user()) {
return '';
}
];
}
- // 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 '';
}