From 30e22b8739647d6391fab4540926c6167bc1e022 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 20 Jul 2011 18:06:28 +0200 Subject: [PATCH] Fixed UsersMassProcessingForm::checkOption() Pay attention that the whole form needs still to be converted to the new API like $this->options instead of $this->activeOptions. --- .../files/lib/acp/form/UsersMassProcessingForm.class.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/form/UsersMassProcessingForm.class.php b/wcfsetup/install/files/lib/acp/form/UsersMassProcessingForm.class.php index 984edf1b19..c9755a008d 100755 --- a/wcfsetup/install/files/lib/acp/form/UsersMassProcessingForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UsersMassProcessingForm.class.php @@ -393,10 +393,9 @@ class UsersMassProcessingForm extends UserOptionListForm { } /** - * @see wcf\acp\form\DynamicOptionListForm::checkOption() + * @see wcf\acp\form\AbstractOptionListForm::checkOption() */ - protected function checkOption($optionName) { - $option = $this->cachedOptions[$optionName]; - return ($option['searchable'] == 1 && !$option['disabled'] && ($option['visible'] == 3 || $option['visible'] < 2)); + protected static function checkOption(Option $option) { + return ($option->searchable == 1 && !$option->disabled && ($option->visible == 3 || $option->visible < 2)); } } -- 2.20.1