diff --git a/server/plugins-available/mysql_clientdb_plugin.inc.php b/server/plugins-available/mysql_clientdb_plugin.inc.php index 16ff81b166dc7af66e078c4d7638b7c4804305f4..5bcfbee5a4f51aea03f4b1a46c7e515799fe860c 100644 --- a/server/plugins-available/mysql_clientdb_plugin.inc.php +++ b/server/plugins-available/mysql_clientdb_plugin.inc.php @@ -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; }