remove warnings

This commit is contained in:
Steve Alberty
2001-08-18 13:58:16 +00:00
parent 66dd80786b
commit c0105db92d

View File

@@ -259,9 +259,9 @@ if (!defined('__LIB_INC__')){
auth(); auth();
} else { } else {
if (empty($cfgServer['port'])) { 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 { } 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_USER = str_replace('\'', '\\\'', $PHP_AUTH_USER);
$PHP_AUTH_PW = str_replace('\'', '\\\'', $PHP_AUTH_PW); $PHP_AUTH_PW = str_replace('\'', '\\\'', $PHP_AUTH_PW);