X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fgroup.php;h=793e854be046bc7f43db7572b249621e2dc19e8d;hb=2856664eeb44bfb2b1190965562b55740dc22113;hp=f2e3d18203b570266cc70edaaba32f7350d65942;hpb=d20e1a6f938d088708166e039ae0088a8ddf11e4;p=friendica.git diff --git a/include/group.php b/include/group.php index f2e3d18203..793e854be0 100644 --- a/include/group.php +++ b/include/group.php @@ -38,7 +38,7 @@ function group_rmv($uid,$name) { ); // remove group - $r = q("DELETE FROM `group` WHERE `uid` = %d AND `id` = %d LIMIT 1", + $r = q("UPDATE `group` SET `deleted` = 1 WHERE `uid` = %d AND `name` = '%s' LIMIT 1", intval($uid), dbesc($name) ); @@ -46,7 +46,6 @@ function group_rmv($uid,$name) { $ret = $r; } - // TODO!! remove this group from all content ACL's !! return $ret; } @@ -121,31 +120,37 @@ function group_get_members($gid) { -function group_side() { +function group_side($every="contacts",$each="group") { + + $o = ''; if(! local_user()) - return; + return ''; + + $createtext = t('Create a new group'); + $linktext= t('Everybody'); + $o .= <<< EOT
";