web: remote "@" before mysql_connect calls

This commit is contained in:
David Anderson 2015-12-23 17:18:10 -08:00
parent 90cb8b9580
commit 9fffea505f
1 changed files with 10 additions and 10 deletions

View File

@ -49,7 +49,7 @@ if (MYSQLI) {
} else {
$port = null;
}
$mysqli = @new mysqli($host, $user, $pass, $dbname, $port);
$mysqli = new mysqli($host, $user, $pass, $dbname, $port);
return $mysqli;
}
function _mysql_query($q) {
@ -110,7 +110,7 @@ if (MYSQLI) {
}
} else {
function _mysql_connect($host, $user, $pass, $db_name) {
$link = @mysql_pconnect($host, $user, $pass);
$link = mysql_pconnect($host, $user, $pass);
if (!$link) return null;
if (!mysql_select_db($db_name, $link)) {
return null;
@ -191,14 +191,14 @@ function db_init_aux($try_replica=false) {
return 1;
}
} else {
$link = mysql_pconnect($host, $user, $pass);
if (!$link) {
return 1;
}
if (!mysql_select_db($db_name, $link)) {
echo "selecting $db_name\n";
return 2;
}
$link = mysql_pconnect($host, $user, $pass);
if (!$link) {
return 1;
}
if (!mysql_select_db($db_name, $link)) {
echo "selecting $db_name\n";
return 2;
}
}
return 0;