Skip to content

Commit

Permalink
Merge branch 'MDL-59509-master' of git://github.com/andrewnicols/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonllao committed Jul 24, 2017
2 parents 8fbae27 + e879619 commit b4e55d3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/dml/sqlsrv_native_moodle_database.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,13 @@ public function connect($dbhost, $dbuser, $dbpass, $dbname, $prefix, array $dbop
sqlsrv_configure("LogSeverity", SQLSRV_LOG_SEVERITY_ERROR);

$this->store_settings($dbhost, $dbuser, $dbpass, $dbname, $prefix, $dboptions);
$this->sqlsrv = sqlsrv_connect($this->dbhost, array

$dbhost = $this->dbhost;
if (!empty($dboptions['dbport'])) {
$dbhost .= ',' . $dboptions['dbport'];
}

$this->sqlsrv = sqlsrv_connect($dbhost, array
(
'UID' => $this->dbuser,
'PWD' => $this->dbpass,
Expand Down

0 comments on commit b4e55d3

Please sign in to comment.