nveid
2011-12-17 a7cb2b0250c17405cd52649be7aa5ed463e7078d
Reversed the logic one place in the mysql client plugin
1 files modified
4 ■■■■ changed files
server/plugins-available/mysql_clientdb_plugin.inc.php 4 ●●●● patch | view | raw | blame | history
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;
            }