X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fgroup.php;h=8866104fca54a58ad49bfded919bb220e6633158;hb=b43ed54967e133ca250ee7f42a90d699781d904f;hp=07cd45f199d32f2f33a23cdf8ec8c4d465ac4d42;hpb=1bba63fb607c2cb5fb2c002e63ad7128ecf8b1ea;p=friendica.git diff --git a/include/group.php b/include/group.php index 07cd45f199..8866104fca 100644 --- a/include/group.php +++ b/include/group.php @@ -108,7 +108,7 @@ function group_get_members($gid) { if(intval($gid)) { $r = q("SELECT `group_member`.`contact-id`, `contact`.* FROM `group_member` LEFT JOIN `contact` ON `contact`.`id` = `group_member`.`contact-id` - WHERE `gid` = %d AND `group_member`.`uid` = %d", + WHERE `gid` = %d AND `group_member`.`uid` = %d ORDER BY `contact`.`name` ASC ", intval($gid), intval(local_user()) ); @@ -123,7 +123,8 @@ function group_public_members($gid) { if(intval($gid)) { $r = q("SELECT `contact`.`id` AS `contact-id` FROM `group_member` LEFT JOIN `contact` ON `contact`.`id` = `group_member`.`contact-id` - WHERE `gid` = %d AND `group_member`.`uid` = %d AND `contact`.`network` != 'dfrn' ", + WHERE `gid` = %d AND `group_member`.`uid` = %d + AND `contact`.`network` != 'dfrn' AND `contact`.`network` != 'mail' AND `contact`.`network` != 'face' ", intval($gid), intval(local_user()) ); @@ -135,7 +136,7 @@ function group_public_members($gid) { -function group_side($every="contacts",$each="group") { +function group_side($every="contacts",$each="group",$edit = false) { $o = ''; @@ -165,7 +166,7 @@ EOT; ); if(count($r)) { foreach($r as $rr) - $o .= "
  • {$rr['name']}
  • \r\n"; + $o .= ' \r\n"; } $o .= " \r\n \r\n";