description) { $this->setError(JText::_('TABLE_PROFILE_NODESCRIPTION')); return false; } return true; } /** * Overloads the delete method to ensure we're not deleting the default profile * * @param int $id Optional; the record id */ public function delete( $id=null ) { if (($id==1) || ( is_null($id) && ($this->id == 1) )) { $this->setError(JText::_('TABLE_PROFILE_CANNOTDELETEDEFAULT')); return false; } else return parent::delete($id); } }