aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-08-11 01:48:43 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-08-11 01:48:43 -0700
commitf4e634ad526198cc5c79e74d77b19c8a1b518942 (patch)
tree03af04ec04e2953cd3760333fc0c42fce4a0f352 /include
parenteb6b2677cb214b018f95e621e3fcdce7e49c2d95 (diff)
downloadvolse-hubzilla-f4e634ad526198cc5c79e74d77b19c8a1b518942.tar.gz
volse-hubzilla-f4e634ad526198cc5c79e74d77b19c8a1b518942.tar.bz2
volse-hubzilla-f4e634ad526198cc5c79e74d77b19c8a1b518942.zip
group drop
Diffstat (limited to 'include')
-rw-r--r--include/group.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/group.php b/include/group.php
index 848db43bd..dfec4afa0 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 `id` = %d 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;
}
@@ -144,7 +143,7 @@ $o .= <<< EOT
EOT;
- $r = q("SELECT * FROM `group` WHERE `uid` = %d",
+ $r = q("SELECT * FROM `group` WHERE `deleted` = 0 AND `uid` = %d",
intval($_SESSION['uid'])
);
if(count($r)) {