Skip to content

Commit

Permalink
Merge branch 'MDL-59509-32' of git://github.com/andrewnicols/moodle i…
Browse files Browse the repository at this point in the history
…nto MOODLE_32_STABLE
  • Loading branch information
dmonllao committed Jul 24, 2017
2 parents 894c661 + 62d4895 commit 6832876
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/dml/sqlsrv_native_moodle_database.php
Expand Up @@ -186,7 +186,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 6832876

Please sign in to comment.