From 23fd8e3d127ab20c430ec7b6b37b8a1f86342943 Mon Sep 17 00:00:00 2001 From: skuli434 <skuli434@ispconfig3> Date: Thu, 22 Dec 2011 09:28:30 -0500 Subject: [PATCH] myispconfig --- server/plugins-available/mysql_clientdb_plugin.inc.php | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/plugins-available/mysql_clientdb_plugin.inc.php b/server/plugins-available/mysql_clientdb_plugin.inc.php index 16ff81b..5bcfbee 100644 --- a/server/plugins-available/mysql_clientdb_plugin.inc.php +++ b/server/plugins-available/mysql_clientdb_plugin.inc.php @@ -131,7 +131,7 @@ //* 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 @@ //* 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; } -- Gitblit v1.9.1