aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Removeaccount.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2024-11-14 18:40:15 +0000
committerMario <mario@mariovavti.com>2024-11-14 18:40:15 +0000
commit951800eca6045f6e0dc1e9a12c225c8e55b044e9 (patch)
tree2eaa48c246725a85b4277db07b72831f088cf5e9 /Zotlabs/Module/Removeaccount.php
parentd446f171c50b3d74b2f9865ccf17b535aaa38fe1 (diff)
downloadvolse-hubzilla-951800eca6045f6e0dc1e9a12c225c8e55b044e9.tar.gz
volse-hubzilla-951800eca6045f6e0dc1e9a12c225c8e55b044e9.tar.bz2
volse-hubzilla-951800eca6045f6e0dc1e9a12c225c8e55b044e9.zip
Several issues discovered by PHPStan
Diffstat (limited to 'Zotlabs/Module/Removeaccount.php')
-rw-r--r--Zotlabs/Module/Removeaccount.php20
1 files changed, 8 insertions, 12 deletions
diff --git a/Zotlabs/Module/Removeaccount.php b/Zotlabs/Module/Removeaccount.php
index cd18b79c0..b41acb8b0 100644
--- a/Zotlabs/Module/Removeaccount.php
+++ b/Zotlabs/Module/Removeaccount.php
@@ -36,22 +36,22 @@ class Removeaccount extends \Zotlabs\Web\Controller {
return;
}
}
-
+
$global_remove = 0; //intval($_POST['global']);
-
- account_remove($account_id, 1 - $global_remove);
+
+ account_remove($account_id, 1 - $global_remove);
}
-
+
function get() {
-
+
if(! local_channel())
goaway(z_root());
-
+
$hash = random_string();
-
+
$_SESSION['remove_account_verify'] = $hash;
$tpl = get_markup_template('removeaccount.tpl');
- $o .= replace_macros($tpl, array(
+ return replace_macros($tpl, array(
'$basedir' => z_root(),
'$hash' => $hash,
'$title' => t('Remove This Account'),
@@ -60,9 +60,5 @@ class Removeaccount extends \Zotlabs\Web\Controller {
// '$global' => array('global', t('Remove this account, all its channels and all its channel clones from the network'), false, t('By default only the instances of the channels located on this hub will be removed from the network')),
'$submit' => t('Remove Account')
));
-
- return $o;
-
}
-
}