Fixed an error that made impossible the connection with the metaconsole nodes

This commit is contained in:
Alejandro Gallardo Escobar 2015-01-29 20:26:46 +01:00
parent 2a36e4b864
commit 42b8b97f82
1 changed files with 6 additions and 4 deletions

View File

@ -79,14 +79,15 @@ if ($get_module_detail) {
if (defined ('METACONSOLE')) {
$server = metaconsole_get_connection ($server_name);
$conexion = mysql_connect ($server['dbhost'], $server['dbuser'],
$server['dbpass']);
$select_db = mysql_select_db ($server['dbname'], $conexion);
if (metaconsole_connect($server) != NOERR)
return;
$conexion = false;
}
else {
$conexion = false;
}
html_debug_print($conexion, true);
$selection_mode = get_parameter('selection_mode', 'fromnow');
$date_from = (string) get_parameter ('date_from', date ('Y-m-j'));
$time_from = (string) get_parameter ('time_from', date ('h:iA'));
@ -266,6 +267,7 @@ if ($get_module_detail) {
html_print_table($table);
}
metaconsole_restore_db();
return;
}