name = JString::trim($this->name); if ($this->name == '') { $this->setError(JText::_('K2_NAME_CANNOT_BE_EMPTY')); return false; } return true; } }