Fix fatal errors caused by buggy / deprecated code
My attempt at fixes for #193 (closed) and #194 (closed):
- Remove unnecessary level of array encapsulation when creating
$params
for custom profiles, so that the correct data format is passed downstream to CiviCRM core functions. - Replace now-broken reference to
CRM_Core_OptionGroup::getLabel()
withCRM_Core_PseudoConstant::getLabel()
Tested and working on CiviCRM 5.66.1.