aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Admin
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-01-29 17:43:11 -0800
committerzotlabs <mike@macgirvin.com>2018-01-29 17:43:11 -0800
commit668f56807ad8bde45a2ed679eb3c97c632b6fb2f (patch)
tree52f50ba143389ea8a7173fb5a7f8aad01b507d9b /Zotlabs/Module/Admin
parent8d479aa1c74169e5b39d6409582c87e59a82d692 (diff)
downloadvolse-hubzilla-668f56807ad8bde45a2ed679eb3c97c632b6fb2f.tar.gz
volse-hubzilla-668f56807ad8bde45a2ed679eb3c97c632b6fb2f.tar.bz2
volse-hubzilla-668f56807ad8bde45a2ed679eb3c97c632b6fb2f.zip
unable to delete accounts using tickboxes on admin/accounts - make all the action names consistent
Diffstat (limited to 'Zotlabs/Module/Admin')
-rw-r--r--Zotlabs/Module/Admin/Accounts.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/Zotlabs/Module/Admin/Accounts.php b/Zotlabs/Module/Admin/Accounts.php
index 2043550fc..8925ffff1 100644
--- a/Zotlabs/Module/Admin/Accounts.php
+++ b/Zotlabs/Module/Admin/Accounts.php
@@ -16,6 +16,9 @@ class Accounts {
*/
function post() {
+
+logger('post: ' . print_r($_POST,true));
+
$pending = ( x($_POST, 'pending') ? $_POST['pending'] : array() );
$users = ( x($_POST, 'user') ? $_POST['user'] : array() );
$blocked = ( x($_POST, 'blocked') ? $_POST['blocked'] : array() );
@@ -24,7 +27,7 @@ class Accounts {
// change to switch structure?
// account block/unblock button was submitted
- if (x($_POST, 'page_users_block')) {
+ if (x($_POST, 'page_accounts_block')) {
for ($i = 0; $i < count($users); $i++) {
// if account is blocked remove blocked bit-flag, otherwise add blocked bit-flag
$op = ($blocked[$i]) ? '& ~' : '| ';
@@ -43,13 +46,13 @@ class Accounts {
notice( sprintf( tt("%s account deleted", "%s accounts deleted", count($users)), count($users)) );
}
// registration approved button was submitted
- if (x($_POST, 'page_users_approve')) {
+ if (x($_POST, 'page_accounts_approve')) {
foreach ($pending as $hash) {
account_allow($hash);
}
}
// registration deny button was submitted
- if (x($_POST, 'page_users_deny')) {
+ if (x($_POST, 'page_accounts_deny')) {
foreach ($pending as $hash) {
account_deny($hash);
}