Skip to content

Commit

Permalink
fix #25
Browse files Browse the repository at this point in the history
  • Loading branch information
emalherbi committed Jul 23, 2018
1 parent 626e17c commit 7568882
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/MyMssql.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ public function connect()
try {
if ('SQLSRV' == $this->ini['ADAPTER']) {
$info = array('Database' => $database, 'UID' => $username, 'PWD' => $password);
$this->db = sqlsrv_connect($hostname, $info);
$this->db = @sqlsrv_connect($hostname, $info);
} else {
$this->db = mssql_connect($hostname, $username, $password);
mssql_select_db($database, $this->db);
$this->db = @mssql_connect($hostname, $username, $password);
@mssql_select_db($database, $this->db);
}
} catch (Exception $e) {
$err = $e->getMessage();
Expand Down

0 comments on commit 7568882

Please sign in to comment.