diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index d141160f9b..89e764aaaa 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -14430,7 +14430,7 @@ function api_get_module_graph($id_module, $thrash2, $other, $thrash4) $height = (!empty($other) && isset($other['data'][3]) && $other['data'][3]) ? $other['data'][3] : 225; // Graph width (optional). - $width = (!empty($other) && isset($other['data'][4]) && $other['data'][4]) ? $other['data'][4] : ''; + $width = (!empty($other) && isset($other['data'][4]) && $other['data'][4]) ? $other['data'][4] : 600; // If recive value its from mail call. $graph_font_size = $other['data'][5]; diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index 899254d02c..b2ea690cfa 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -1547,11 +1547,11 @@ sub pandora_execute_action ($$$$$$$$$;$$) { my $threshold = shift; my $period = $hours * 3600; # Hours to seconds if($threshold == 0){ - $params->{"other"} = $period . '%7C1%7C0%7C225%7C""%7C14'; + $params->{"other"} = $period . '%7C1%7C0%7C225%7C%7C14'; $cid = 'module_graph_' . $hours . 'h'; } else{ - $params->{"other"} = $period . '%7C1%7C1%7C225%7C""%7C14'; + $params->{"other"} = $period . '%7C1%7C1%7C225%7C%7C14'; $cid = 'module_graphth_' . $hours . 'h'; }