Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin'
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardCardGate committed Jun 28, 2021
2 parents b07f4e8 + d5cd85c commit 3928f42
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion payment/cardgateplus/cardgateplus_lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,15 @@ function __construct($pm_type) {
global $sql_user;
global $sql_password;
global $sql_db;

if (strpos($sql_host, ':') !== false) {
list($host, $port_socket) = explode(':', $sql_host);
} else {
$host = $sql_host;
$port_socket = '';
}

$this->link = mysqli_connect($sql_host, $sql_user, $sql_password, $sql_db);
$this->link = mysqli_connect($host, $sql_user, $sql_password, $sql_db);

$isValidPm = $this->checkPmType($pm_type);
if (! $isValidPm) {
Expand Down

0 comments on commit 3928f42

Please sign in to comment.