From 7568882b8c987b47d3e7c4afbecf8ef38431815d Mon Sep 17 00:00:00 2001 From: Eduardo Malherbi Date: Mon, 23 Jul 2018 15:58:08 -0300 Subject: [PATCH] fix #25 --- src/MyMssql.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MyMssql.php b/src/MyMssql.php index 8ffcfa4..a4d5c09 100755 --- a/src/MyMssql.php +++ b/src/MyMssql.php @@ -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();