fix for

https://github.com/opencart/opencart/pull/1470

also updated the connection if ssl or not to just use true or false