remove warnings
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user