{event name='generalFields'}
</fieldset>
- {foreach from=$optionTree[0][categories] item=category}
- <fieldset>
- <legend>{lang}wcf.user.option.category.{@$category[object]->categoryName}{/lang}</legend>
- {hascontent}<p>{content}{lang __optional=true}wcf.user.option.category.{@$category[object]->categoryName}.description{/lang}{/content}</p>{/hascontent}
-
- {include file='userOptionFieldList' options=$category[options] langPrefix='wcf.user.option.'}
- </fieldset>
- {/foreach}
+ {if !$optionTree|empty}
+ {foreach from=$optionTree[0][categories] item=category}
+ <fieldset>
+ <legend>{lang}wcf.user.option.category.{@$category[object]->categoryName}{/lang}</legend>
+ {hascontent}<p>{content}{lang __optional=true}wcf.user.option.category.{@$category[object]->categoryName}.description{/lang}{/content}</p>{/hascontent}
+
+ {include file='userOptionFieldList' options=$category[options] langPrefix='wcf.user.option.'}
+ </fieldset>
+ {/foreach}
+ {/if}
</div>
{event name='fieldsets'}