diff options
author | Friendika <info@friendika.com> | 2011-03-17 21:15:27 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-03-17 21:15:27 -0700 |
commit | ea03d9fa86827cbc7e86885bbe2493d8a9739546 (patch) | |
tree | 17bc58cec9b7ea2542a0e1a90e57ebe048e5223f /include | |
parent | 6380d22229a6d0003f7024d0c8420ef7c9ec2a4d (diff) | |
download | volse-hubzilla-ea03d9fa86827cbc7e86885bbe2493d8a9739546.tar.gz volse-hubzilla-ea03d9fa86827cbc7e86885bbe2493d8a9739546.tar.bz2 volse-hubzilla-ea03d9fa86827cbc7e86885bbe2493d8a9739546.zip |
more thorough cleanup on account/contact removal
Diffstat (limited to 'include')
-rw-r--r-- | include/Contact.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/Contact.php b/include/Contact.php index 7cac3c0e0..4ca77d065 100644 --- a/include/Contact.php +++ b/include/Contact.php @@ -14,11 +14,13 @@ function user_remove($uid) { q("DELETE FROM `group` WHERE `uid` = %d", intval($uid)); q("DELETE FROM `group_member` WHERE `uid` = %d", intval($uid)); q("DELETE FROM `intro` WHERE `uid` = %d", intval($uid)); + q("DELETE FROM `event` WHERE `uid` = %d", intval($uid)); q("DELETE FROM `item` WHERE `uid` = %d", intval($uid)); q("DELETE FROM `mail` WHERE `uid` = %d", intval($uid)); q("DELETE FROM `photo` WHERE `uid` = %d", intval($uid)); q("DELETE FROM `profile` WHERE `uid` = %d", intval($uid)); q("DELETE FROM `profile_check` WHERE `uid` = %d", intval($uid)); + q("DELETE FROM `pconfig` WHERE `uid` = %d", intval($uid)); q("DELETE FROM `user` WHERE `uid` = %d", intval($uid)); if($uid == local_user()) { unset($_SESSION['authenticated']); @@ -41,6 +43,9 @@ function contact_remove($id) { q("DELETE FROM `mail` WHERE `contact-id` = %d ", intval($id) ); + q("DELETE FROM `event` WHERE `cid` = %d ", + intval($id) + ); } |