X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fgroup.php;h=538277a0c624d7f08ab20ace19dbfde65d45fcec;hb=7e16f8cdae597cc8329c3cc9ce769d512ba84085;hp=16298e63ec118d489a493acf63537c9379da93f3;hpb=a4dbd6657ca48131731da050c5378be8c84eda0e;p=friendica.git diff --git a/mod/group.php b/mod/group.php index 16298e63ec..538277a0c6 100644 --- a/mod/group.php +++ b/mod/group.php @@ -4,6 +4,7 @@ function group_init(&$a) { require_once('include/group.php'); + $a->page['aside'] .= group_side(); } @@ -46,11 +47,33 @@ function group_content(&$a) { )); + } + +dbg(2); + if(($a->argc == 2) && (intval($a->argv[1]))) { + require_once('view/acl_selectors.php'); + $r = q("SELECT * FROM `group` WHERE `id` = %d AND `uid` = %d LIMIT 1", + intval($a->argv[1]), + intval($_SESSION['uid']) + ); + if(! count($r)) { + notice("Group not found." . EOL ); + goaway($a->get_baseurl() . '/contacts'); + } + $ret = group_get_members($r[0]['id']); + $preselected = array(); + if(count($ret)) { + foreach($ret as $p) + $preselected[] = $p['id']; + } + $sel = contact_select('group_members_select','group_members_select',$preselected); + $o .= $sel; + } + + - } - return $o; } \ No newline at end of file