diff --git a/lib.inc.php3 b/lib.inc.php3 index a1f704599..dcae6418d 100755 --- a/lib.inc.php3 +++ b/lib.inc.php3 @@ -259,9 +259,9 @@ if (!defined('__LIB_INC__')){ auth(); } else { if (empty($cfgServer['port'])) { - $dbh = $connect_func($cfgServer['host'], $cfgServer['stduser'], $cfgServer['stdpass']) or mysql_die(); + $dbh = @$connect_func($cfgServer['host'], $cfgServer['stduser'], $cfgServer['stdpass']) or mysql_die(); } else { - $dbh = $connect_func($cfgServer['host'] . ':' . $cfgServer['port'], $cfgServer['stduser'], $cfgServer['stdpass']) or mysql_die(); + $dbh = @$connect_func($cfgServer['host'] . ':' . $cfgServer['port'], $cfgServer['stduser'], $cfgServer['stdpass']) or mysql_die(); } $PHP_AUTH_USER = str_replace('\'', '\\\'', $PHP_AUTH_USER); $PHP_AUTH_PW = str_replace('\'', '\\\'', $PHP_AUTH_PW);