'name' => 'memberdashboard_button_api_password',
'group' => MEMBERDASHBOARD_SETTINGS_GROUP
));
- $params = http_build_query(array(
- 'contact_id' => $contactId,
- 'date' => $joinDate
- ));
if(!empty($apiUrl) && !empty($user) && !empty($password)) {
+ $url = "$apiUrl?contact_id=" . $contactId . "&date=" . $joinDate;
$curl = curl_init();
curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($curl, CURLOPT_USERPWD, "$user:$password");
- curl_setopt($curl, CURLOPT_URL, "$apiUrl?$params");
+ curl_setopt($curl, CURLOPT_URL, $url);
curl_exec($curl);
}
}