Commit c9c3cd51 authored by Jay McConnell's avatar Jay McConnell

our install of whmcs returns 1 instead of "on" when the ssl checkbox is ticked...

our install of whmcs returns 1 instead of "on" when the ssl checkbox is ticked under the module settings, causing ssl to never be enabled and generating the error "ERROR: Timeout while reading from EPP Server"
parent f1df3e45
......@@ -1312,7 +1312,7 @@ function _cozaepp_Client() {
$context = stream_context_create();
# Are we using ssl?
$use_ssl = false;
if (!empty($params['SSL']) && $params['SSL'] == 'on') {
if (!empty($params['SSL']) && ( $params['SSL'] == 1 || $params['SSL'] == 'on' )) {
$use_ssl = true;
}
# Set certificate if we have one
......@@ -1823,5 +1823,4 @@ function cozaepp_RejectTransfer($params) {
}
return $values;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment