public function getErrorAsHTML($intIndex = 0) { return $this->hasErrors() ? sprintf('<p class="%s">%s</p>', TL_MODE == 'BE' ? 'tl_error tl_tip' : 'error', $this->arrErrors[$intIndex]) : ''; }