Minor fix
This commit is contained in:
parent
6e41c4d1bb
commit
5478c14c21
|
@ -81,12 +81,6 @@ function mysql_connect_db(
|
||||||
if ($config['mysqli']) {
|
if ($config['mysqli']) {
|
||||||
if (empty($ssl)) {
|
if (empty($ssl)) {
|
||||||
$connect_id = mysqli_connect($host, $user, $pass, $db, $port);
|
$connect_id = mysqli_connect($host, $user, $pass, $db, $port);
|
||||||
hd($host);
|
|
||||||
hd($user);
|
|
||||||
hd($pass);
|
|
||||||
hd($db);
|
|
||||||
hd($port);
|
|
||||||
hd(mysqli_connect_errno());
|
|
||||||
if (mysqli_connect_errno() > 0) {
|
if (mysqli_connect_errno() > 0) {
|
||||||
include 'general/mysqlerr.php';
|
include 'general/mysqlerr.php';
|
||||||
return false;
|
return false;
|
||||||
|
@ -110,8 +104,6 @@ function mysql_connect_db(
|
||||||
mysqli_real_connect($connect_id, $host, $user, $pass, $db, $port, null, MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT);
|
mysqli_real_connect($connect_id, $host, $user, $pass, $db, $port, null, MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT);
|
||||||
}
|
}
|
||||||
|
|
||||||
hd(mysqli_connect_errno());
|
|
||||||
exit;
|
|
||||||
if (mysqli_connect_errno() > 0) {
|
if (mysqli_connect_errno() > 0) {
|
||||||
include 'general/mysqlerr.php';
|
include 'general/mysqlerr.php';
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue