From 2def8324f240b27ad8dcc3cbc4b1b2308d7cc7cb Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 14 Apr 2013 14:45:25 +0200 Subject: [PATCH] Fixes #1215 --- .../files/lib/acp/form/UsersMassProcessingForm.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/form/UsersMassProcessingForm.class.php b/wcfsetup/install/files/lib/acp/form/UsersMassProcessingForm.class.php index 1dac8088da..032c14dfd9 100644 --- a/wcfsetup/install/files/lib/acp/form/UsersMassProcessingForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UsersMassProcessingForm.class.php @@ -279,9 +279,10 @@ class UsersMassProcessingForm extends UserOptionListForm { case 'assignToGroup': WCF::getSession()->checkPermissions(array('admin.user.canEditUser')); - $userIDArray = $this->fetchUsers(function($userID, array $userData) { + $_this = $this; + $userIDArray = $this->fetchUsers(function($userID, array $userData) use ($_this) { $user = new UserEditor(new User(null, $userData)); - $user->addToGroups($this->assignToGroupIDArray, false, false); + $user->addToGroups($_this->assignToGroupIDArray, false, false); }); UserStorageHandler::getInstance()->reset($userIDArray, 'groupIDs', 1); -- 2.20.1