From: Matthias Schmidt Date: Sun, 14 Apr 2013 12:45:25 +0000 (+0200) Subject: Fixes #1215 X-Git-Tag: 2.0.0_Beta_1~364 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2def8324f240b27ad8dcc3cbc4b1b2308d7cc7cb;p=GitHub%2FWoltLab%2FWCF.git Fixes #1215 --- 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);