diff options
author | Friendika <info@friendika.com> | 2011-02-03 03:58:47 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-02-03 03:58:47 -0800 |
commit | a4cbdc241423ca84eff2e888cf5c0a2cecea5f2a (patch) | |
tree | 68313d4a12742d0ea4f248a1bb353a030377f7f7 /include/Contact.php | |
parent | 01c83f0e93400f7f5ad82b505d65c1b051186519 (diff) | |
download | volse-hubzilla-a4cbdc241423ca84eff2e888cf5c0a2cecea5f2a.tar.gz volse-hubzilla-a4cbdc241423ca84eff2e888cf5c0a2cecea5f2a.tar.bz2 volse-hubzilla-a4cbdc241423ca84eff2e888cf5c0a2cecea5f2a.zip |
remove self
Diffstat (limited to 'include/Contact.php')
-rw-r--r-- | include/Contact.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/Contact.php b/include/Contact.php index 98d3e7c0b..7cac3c0e0 100644 --- a/include/Contact.php +++ b/include/Contact.php @@ -6,6 +6,10 @@ // authorisation to do this. function user_remove($uid) { + if(! $uid) + return; + $a = get_app(); + logger('Removing user: ' . $uid); q("DELETE FROM `contact` WHERE `uid` = %d", intval($uid)); q("DELETE FROM `group` WHERE `uid` = %d", intval($uid)); q("DELETE FROM `group_member` WHERE `uid` = %d", intval($uid)); @@ -19,7 +23,7 @@ function user_remove($uid) { if($uid == local_user()) { unset($_SESSION['authenticated']); unset($_SESSION['uid']); - killme(); + goaway($a->get_baseurl()); } } |