Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tommaso Perondi
ISPConfig 3
Commits
aad778ef
Commit
aad778ef
authored
Nov 07, 2017
by
Till Brehm
Browse files
Fixed PHP warnings in mysql install lib
parent
212e4d0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
install/lib/mysql.lib.php
View file @
aad778ef
...
...
@@ -107,7 +107,7 @@ class db
public
function
setDBName
(
$name
)
{
$this
->
dbName
=
$name
;
$this
->
_iConnId
=
mysqli_connect
(
$this
->
dbHost
,
$this
->
dbUser
,
$this
->
dbPass
);
$this
->
_iConnId
=
mysqli_connect
(
$this
->
dbHost
,
$this
->
dbUser
,
$this
->
dbPass
,
''
,
(
int
)
$this
->
dbPort
);
if
(
!
((
bool
)
mysqli_query
(
$this
->
_iConnId
,
'USE `'
.
$this
->
dbName
.
'`'
)))
{
$this
->
close
();
$this
->
_sqlerror
(
'Datenbank nicht gefunden / Database not found'
);
...
...
@@ -204,7 +204,7 @@ class db
$try
++
;
$ok
=
mysqli_ping
(
$this
->
_iConnId
);
if
(
!
$ok
)
{
if
(
!
mysqli_connect
(
$this
->
dbHost
,
$this
->
dbUser
,
$this
->
dbPass
,
$this
->
dbName
,
''
,
(
int
)
$this
->
dbPort
))
{
if
(
!
mysqli_connect
(
$this
->
dbHost
,
$this
->
dbUser
,
$this
->
dbPass
,
$this
->
dbName
,
(
int
)
$this
->
dbPort
))
{
if
(
$this
->
errorNumber
==
'111'
)
{
// server is not available
if
(
$try
>
9
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment