aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRedMatrix <info@friendica.com>2014-08-15 23:03:04 +1000
committerRedMatrix <info@friendica.com>2014-08-15 23:03:04 +1000
commitd6da6f5001aa70681401a8b811d4e431a7831bd8 (patch)
tree240a16b7ab1bf73b9e28d31d58c72c43a1278c03 /include
parentb88e1e98624510ceb5cc63a12d9f229213f2d5a1 (diff)
parentf36253b7a8f3cc628b985df1ab257ff03189727c (diff)
downloadvolse-hubzilla-d6da6f5001aa70681401a8b811d4e431a7831bd8.tar.gz
volse-hubzilla-d6da6f5001aa70681401a8b811d4e431a7831bd8.tar.bz2
volse-hubzilla-d6da6f5001aa70681401a8b811d4e431a7831bd8.zip
Merge pull request #562 from cvogeley/master
Account deletion
Diffstat (limited to 'include')
-rw-r--r--include/Contact.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/Contact.php b/include/Contact.php
index 47b1763cb..140f449af 100644
--- a/include/Contact.php
+++ b/include/Contact.php
@@ -185,6 +185,7 @@ function account_remove($account_id,$local = true,$unset_session=true) {
$r = q("select * from account where account_id = %d limit 1",
intval($account_id)
);
+ $account_email=$r[0]['account_email'];
if(! $r) {
logger('account_remove: No account with id: ' . $account_id);
@@ -207,6 +208,7 @@ function account_remove($account_id,$local = true,$unset_session=true) {
if ($unset_session) {
unset($_SESSION['authenticated']);
unset($_SESSION['uid']);
+ notice( sprintf(t("User '%s' deleted"),$account_email) . EOL);
goaway(get_app()->get_baseurl());
}
return $r;