Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Trustly/Api/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function __construct($host='trustly.com', $port=443, $is_https=TRUE) {

if($this->loadTrustlyPublicKey($host, $port, $is_https) === FALSE) {
$error = openssl_error_string();
throw new InvalidArgumentException("Cannot load Trustly public key file for host $host".(isset($error)?", error $error":''));
throw new InvalidArgumentException("Cannot load Trustly public key file for host $host".($error?", error $error":''));
}

/* Make sure the curl extension is loaded so we can open URL's */
Expand Down Expand Up @@ -264,7 +264,7 @@ public function setHost($host=NULL, $port=NULL, $is_https=NULL) {

if($this->loadTrustlyPublicKey($host, $port) === FALSE) {
$error = openssl_error_string();
throw new InvalidArgumentException("Cannot load Trustly public key file for host $host".(isset($error)?", error $error":''));
throw new InvalidArgumentException("Cannot load Trustly public key file for host $host".($error?", error $error":''));
}

if(isset($is_https)) {
Expand Down