prevented unnecessary duplicate generation of the option tree
authorMarcel Werk <burntime@woltlab.com>
Mon, 21 Dec 2020 10:29:55 +0000 (11:29 +0100)
committerMarcel Werk <burntime@woltlab.com>
Mon, 21 Dec 2020 10:29:55 +0000 (11:29 +0100)
wcfsetup/install/files/lib/form/SettingsForm.class.php

index 4d6c61e62fc60970e0f209c57c6ba7e00d8be850..c2b099970dd6014b059a5550cbca0c73cd1be294 100644 (file)
@@ -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();
                }
        }