Added proper support for font size and color
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / categoryOptionList.tpl
index f362f14359a380eb062e8574fa0c5f3242beec0e..0d0860db0ec9ad6934bbc1187a0034febc08141e 100644 (file)
@@ -1,5 +1,5 @@
 {foreach from=$categoryNodeList item='category'}
-       {if !$maximumNestingLevel|isset || $maximumNestingLevel == -1 || $categoryNodeList->getDepth() <= $maximumNestingLevel}
+       {if !$maximumNestingLevel|isset || $maximumNestingLevel == -1 || $categoryNodeList->getDepth() < $maximumNestingLevel}
                <option value="{$category->categoryID}"{if $categoryID|isset && $categoryID == $category->categoryID} selected="selected"{/if}>{section name=i loop=$categoryNodeList->getDepth()}&nbsp;&nbsp;&nbsp;&nbsp;{/section}{$category->getTitle()}</option>
        {/if}
-{/foreach}
\ No newline at end of file
+{/foreach}