From: Matthias Schmidt Date: Tue, 4 Feb 2014 06:25:58 +0000 (+0100) Subject: Fixes user search if no searchable user option exists/is enabled X-Git-Tag: 2.0.3~56^2~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a690b2ad3da850b9446648401d566ea59ab0a260;p=GitHub%2FWoltLab%2FWCF.git Fixes user search if no searchable user option exists/is enabled --- diff --git a/com.woltlab.wcf/templates/userSearch.tpl b/com.woltlab.wcf/templates/userSearch.tpl index c941f004fd..ba522b247f 100644 --- a/com.woltlab.wcf/templates/userSearch.tpl +++ b/com.woltlab.wcf/templates/userSearch.tpl @@ -61,14 +61,16 @@ {event name='generalFields'} - {foreach from=$optionTree[0][categories] item=category} -
- {lang}wcf.user.option.category.{@$category[object]->categoryName}{/lang} - {hascontent}

{content}{lang __optional=true}wcf.user.option.category.{@$category[object]->categoryName}.description{/lang}{/content}

{/hascontent} - - {include file='userOptionFieldList' options=$category[options] langPrefix='wcf.user.option.'} -
- {/foreach} + {if !$optionTree|empty} + {foreach from=$optionTree[0][categories] item=category} +
+ {lang}wcf.user.option.category.{@$category[object]->categoryName}{/lang} + {hascontent}

{content}{lang __optional=true}wcf.user.option.category.{@$category[object]->categoryName}.description{/lang}{/content}

{/hascontent} + + {include file='userOptionFieldList' options=$category[options] langPrefix='wcf.user.option.'} +
+ {/foreach} + {/if} {event name='fieldsets'}