]> git.mxchange.org Git - friendica.git/blobdiff - mod/removeme.php
Merge pull request #4440 from rabuzarus/20180211_-_fix_variables_part_two
[friendica.git] / mod / removeme.php
index ac13da2f14696eaed888fe1c2cbb6c4e3a40a97a..0363bf9f32990ad900d182c2c14bd5719b22eaf9 100644 (file)
@@ -29,7 +29,7 @@ function removeme_post(App $a)
                return;
        }
 
-       if (User::authenticate($a->user['uid'], trim($_POST['qxz_password']))) {
+       if (User::authenticate($a->user, trim($_POST['qxz_password']))) {
                User::remove($a->user['uid']);
                // NOTREACHED
        }
@@ -49,7 +49,7 @@ function removeme_content(App $a)
        $_SESSION['remove_account_verify'] = $hash;
 
        $tpl = get_markup_template('removeme.tpl');
-       $o .= replace_macros($tpl, [
+       $o = replace_macros($tpl, [
                '$basedir' => System::baseUrl(),
                '$hash' => $hash,
                '$title' => L10n::t('Remove My Account'),