From 0aa4e9a178014ef14f483cfcbf25807c29a53722 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 21 Dec 2020 11:29:55 +0100 Subject: [PATCH] prevented unnecessary duplicate generation of the option tree --- wcfsetup/install/files/lib/form/SettingsForm.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/form/SettingsForm.class.php b/wcfsetup/install/files/lib/form/SettingsForm.class.php index 4d6c61e62f..c2b099970d 100644 --- a/wcfsetup/install/files/lib/form/SettingsForm.class.php +++ b/wcfsetup/install/files/lib/form/SettingsForm.class.php @@ -130,7 +130,7 @@ class SettingsForm extends AbstractForm { Trophy::sort($this->availableTrophies, 'showOrder'); } - else if (empty($this->optionHandler->getOptionTree())) { + else if (!$this->optionHandler->countCategoryOptions('settings.'.$this->category)) { throw new IllegalLinkException(); } } -- 2.20.1