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
Zvonimir
ISPConfig 3
Commits
a7cb2b02
Commit
a7cb2b02
authored
Dec 17, 2011
by
nveid
Browse files
Reversed the logic one place in the mysql client plugin
parent
1d8f7f15
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/mysql_clientdb_plugin.inc.php
View file @
a7cb2b02
...
...
@@ -131,7 +131,7 @@ class mysql_clientdb_plugin {
//* Connect to the database
$link
=
new
mysqli
(
$clientdb_host
,
$clientdb_user
,
$clientdb_password
);
if
(
!
$link
->
connect_error
)
{
if
(
$link
->
connect_error
)
{
$app
->
log
(
'Unable to connect to mysql'
.
$link
->
connect_error
,
LOGLEVEL_ERROR
);
return
;
}
...
...
@@ -184,7 +184,7 @@ class mysql_clientdb_plugin {
//* Connect to the database
$link
=
new
mysqli
(
$clientdb_host
,
$clientdb_user
,
$clientdb_password
);
if
(
!
$link
)
{
if
(
$link
->
connect_error
)
{
$app
->
log
(
'Unable to connect to the database: '
.
$link
->
connect_error
,
LOGLEVEL_ERROR
);
return
;
}
...
...
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