name = JString::trim($this->name); if ($this->name == '') { $this->setError(JText::_('K2_GROUP_CANNOT_BE_EMPTY')); return false; } return true; } function bind($array, $ignore = '') { if (key_exists('params', $array) && is_array($array['params'])) { $registry = new JRegistry(); $registry->loadArray($array['params']); if (JRequest::getVar('categories') == 'all' || JRequest::getVar('categories') == 'none') $registry->set('categories', JRequest::getVar('categories')); $array['permissions'] = $registry->toString(); } return parent::bind($array, $ignore); } }