Suppress errors in connecting via MySQLi
authorRobert Sesek <rsesek@bluestatic.org>
Tue, 14 Aug 2007 01:49:38 +0000 (01:49 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Tue, 14 Aug 2007 01:49:38 +0000 (01:49 +0000)
* DbMySqlI.php:
(BSDbMySqlI::_connect): Suppress the errors in our call to mysqli_connect

DbMySqlI.php

index e0dba3ac3fd769acc052358ac6ab03761e11e327..4f3fb44f7e7f6cb880a6b47fa932541c063fa320 100644 (file)
@@ -47,7 +47,7 @@ class BSDbMySqlI extends BSDb
        */
        protected function _connect($server, $user, $password, $database)
        {
-               return mysqli_connect($server, $user, $password, $database);
+               return @mysqli_connect($server, $user, $password, $database);
        }
        
        // ###################################################################