Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
lolo888
ISPConfig 3
Commits
a7cb2b02
Commit
a7cb2b02
authored
Dec 17, 2011
by
nveid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reversed the logic one place in the mysql client plugin
parent
1d8f7f15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
server/plugins-available/mysql_clientdb_plugin.inc.php
server/plugins-available/mysql_clientdb_plugin.inc.php
+2
-2
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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