diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index b35a3a253e..59e7a925c6 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2009-07-01 Ramon Novoa + + * include/functions_custom_graphs.php, include/fgraph.php, + include/functions_fsgraph.php: Small fixes, mostly path related. + 2009-06-01 Jorge Gonzalez * include/languages/es.po, include/languages/es.mo: Updated Spanish diff --git a/pandora_console/include/fgraph.php b/pandora_console/include/fgraph.php index 382fab2733..4af2a96705 100644 --- a/pandora_console/include/fgraph.php +++ b/pandora_console/include/fgraph.php @@ -327,7 +327,7 @@ function grafico_modulo_sparse ($id_agente_modulo, $period, $show_event, if ($all_data === false) { if (! $graphic_type) { - return fs_error_image ('../images'); + return fs_error_image (); } graphic_error (); } @@ -800,6 +800,9 @@ function graph_event_module ($width = 300, $height = 200, $id_agent) { GROUP BY id_agentmodule LIMIT %d', $id_agent, $max_items); $events = get_db_all_rows_sql ($sql); if ($events === false) { + if (! $graphic_type) { + return fs_error_image (); + } graphic_error (); return; } diff --git a/pandora_console/include/functions_custom_graphs.php b/pandora_console/include/functions_custom_graphs.php index 22681d8780..2173044b6f 100644 --- a/pandora_console/include/functions_custom_graphs.php +++ b/pandora_console/include/functions_custom_graphs.php @@ -14,6 +14,7 @@ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. +global $config; if ($config['flash_charts']) { require_once ('include/fgraph.php'); } diff --git a/pandora_console/include/functions_fsgraph.php b/pandora_console/include/functions_fsgraph.php index 229441b52b..9c8f8d04ed 100644 --- a/pandora_console/include/functions_fsgraph.php +++ b/pandora_console/include/functions_fsgraph.php @@ -25,7 +25,7 @@ function get_chart_code ($chart, $width, $height, $swf) { $output .= '