aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_inactive.php
diff options
context:
space:
mode:
authorJosh Woody <a_jelly_doughnut@phpbb.com>2010-05-17 12:12:00 -0500
committerOleg Pudeyev <oleg@bsdpower.com>2011-05-08 02:56:45 -0400
commite7e0ab9d0b33121e38a236879fcca417072140f6 (patch)
tree85fa54dbbef58afaa3197e0d79c3b38a522e3686 /phpBB/includes/acp/acp_inactive.php
parent76ad7c938d7834c09c98b6759dca4a196eb3c29b (diff)
downloadforums-e7e0ab9d0b33121e38a236879fcca417072140f6.tar
forums-e7e0ab9d0b33121e38a236879fcca417072140f6.tar.gz
forums-e7e0ab9d0b33121e38a236879fcca417072140f6.tar.bz2
forums-e7e0ab9d0b33121e38a236879fcca417072140f6.tar.xz
forums-e7e0ab9d0b33121e38a236879fcca417072140f6.zip
[feature/prune-users] Rework user_delete() functions_user.php
user_delete now uses fewer queries to delete a set of users of size > 1 by accepting an array of users rather than a single user at a time. This required changing the third parameter, however the function retains its former behavior with the old-style parameters. PHPBB3-9622
Diffstat (limited to 'phpBB/includes/acp/acp_inactive.php')
-rw-r--r--phpBB/includes/acp/acp_inactive.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/phpBB/includes/acp/acp_inactive.php b/phpBB/includes/acp/acp_inactive.php
index e4fb695a11..833727084f 100644
--- a/phpBB/includes/acp/acp_inactive.php
+++ b/phpBB/includes/acp/acp_inactive.php
@@ -157,10 +157,7 @@ class acp_inactive
trigger_error($user->lang['NO_AUTH_OPERATION'] . adm_back_link($this->u_action), E_USER_WARNING);
}
- foreach ($mark as $user_id)
- {
- user_delete('retain', $user_id, $user_affected[$user_id]);
- }
+ user_delete('retain', $mark, true);
add_log('admin', 'LOG_INACTIVE_' . strtoupper($action), implode(', ', $user_affected));
}