function delete($id) { check_allowed_category($id, END_RESPONSE == 'text'); $cat = $this->get_one($id); if ($cat['system'] == 'yes' && END_DEBUG == false) { return false; } return parent::delete($id); }