From: Marcel Werk Date: Mon, 21 Dec 2020 10:29:55 +0000 (+0100) Subject: prevented unnecessary duplicate generation of the option tree X-Git-Tag: 5.3.2~24 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0aa4e9a178014ef14f483cfcbf25807c29a53722;p=GitHub%2FWoltLab%2FWCF.git prevented unnecessary duplicate generation of the option tree --- 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(); } }