}
}
$providerInfo[$providerID]['api_params'] = $inputVals;
+
+ // Replace the api_type ID with the string value
+ $apiTypes = CRM_Core_OptionGroup::values('sms_api_type');
+ $apiTypeId = $providerInfo[$providerID]['api_type'];
+ $providerInfo[$providerID]['api_type'] = CRM_Utils_Array::value($apiTypeId, $apiTypes, $apiTypeId);
}
}
* @access public
*/
function send($recipients, $header, $message, $jobID = NULL) {
- if ($this->_apiType = 'http') {
+ if ($this->_apiType == 'http') {
$postDataArray = array( );
$url = $this->formURLPostData("/http/sendmsg", $postDataArray);