Permalink
Browse files

Merge branch 'MDL-59509-master' of git://github.com/andrewnicols/moodle

  • Loading branch information...
dmonllao committed Jul 24, 2017
2 parents 8fbae27 + e879619 commit b4e55d3a37fdc795d0c4947c0c817533c90185d2
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/dml/sqlsrv_native_moodle_database.php
@@ -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,

0 comments on commit b4e55d3

Please sign in to comment.