<dt><label for="tagSearchInput">{lang}wcf.tagging.tags{/lang}</label></dt>
<dd>
<input id="tagSearchInput" type="text" value="" class="long">
+ {if $errorField === 'tags'}
+ <small class="innerError">
+ {if $errorType == 'empty'}
+ {lang}wcf.global.form.error.empty{/lang}
+ {else}
+ {lang}wcf.tagging.tags.error.{$errorType}{/lang}
+ {/if}
+ </small>
+ {/if}
<small>{lang}wcf.tagging.tags.description{/lang}</small>
</dd>
</dl>
}
}
- $this->tags = TagEngine::getInstance()->getTagsByName($this->tagNames, $this->languageID);
- if (empty($this->tags)) {
+ if (!empty($this->tagNames)) {
+ $this->tags = TagEngine::getInstance()->getTagsByName($this->tagNames, $this->languageID);
+ if (empty($this->tags)) {
+ throw new UserInputException('tags');
+ }
+ }
+ else {
throw new UserInputException('tags');
}
}