Skip to content

Commit d2aa696

Browse files
committed
Update mysql.lib.php
1 parent 59b38df commit d2aa696

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

install/lib/mysql.lib.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,16 @@ private function do_connect() {
9696
$this->_setCharset();
9797
}
9898

99-
public function setDBData($host, $user, $password) {
99+
public function setDBData($host, $port, $user, $password) {
100100
$this->dbHost = $host;
101+
$this->dbPort = $port;
101102
$this->dbUser = $user;
102103
$this->dbPass = $password;
103104
}
104105

105106
public function setDBName($name) {
106107
$this->dbName = $name;
107-
$this->_iConnId = mysqli_connect($this->dbHost, $this->dbUser, $this->dbPass);
108+
$this->_iConnId = mysqli_connect($this->dbHost, $this->dbUser, $this->dbPass, '', $this->dbPort);
108109
if(!((bool)mysqli_query( $this->_iConnId, 'USE `' . $this->dbName . '`'))) {
109110
$this->close();
110111
$this->_sqlerror('Datenbank nicht gefunden / Database not found');

0 commit comments

Comments
 (0)