From b6a52e7673bbc06475c9cd46204668a1b3c65cbb Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 17 Dec 2020 19:20:09 +0100 Subject: [PATCH] Removed obsolete parameter --- .../install/files/lib/system/option/OptionHandler.class.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/system/option/OptionHandler.class.php b/wcfsetup/install/files/lib/system/option/OptionHandler.class.php index 817a35587b..f8befc6904 100644 --- a/wcfsetup/install/files/lib/system/option/OptionHandler.class.php +++ b/wcfsetup/install/files/lib/system/option/OptionHandler.class.php @@ -250,13 +250,12 @@ class OptionHandler implements IOptionHandler { * Counts the number of options in a specific option category. * * @param string $categoryName - * @param bool $inherit * @return int */ - public function countCategoryOptions($categoryName = '', $inherit = true) { + public function countCategoryOptions($categoryName = '') { $count = 0; - if ($inherit && isset($this->cachedCategoryStructure[$categoryName])) { + if (isset($this->cachedCategoryStructure[$categoryName])) { foreach ($this->cachedCategoryStructure[$categoryName] as $subCategoryName) { $count += $this->countCategoryOptions($subCategoryName); } -- 2.20.1