diff --git a/html/includes/print-quadgraphs.inc.php b/html/includes/print-quadgraphs.inc.php index 8f1e4850f..b4c227ed6 100644 --- a/html/includes/print-quadgraphs.inc.php +++ b/html/includes/print-quadgraphs.inc.php @@ -5,15 +5,15 @@ global $config; if($_SESSION['widescreen']) { if(!$graph_array['height']) { $graph_array['height'] = "110"; } if(!$graph_array['width']) { $graph_array['width'] = "215"; } + $periods = array('sixhour', 'day', 'week', 'month', 'year', 'twoyear'); } else { if(!$graph_array['height']) { $graph_array['height'] = "100"; } if(!$graph_array['width']) { $graph_array['width'] = "215"; } + $periods = array('day', 'week', 'month', 'year'); } $graph_array['to'] = $config['time']['now']; -$periods = array('sixhour', 'day', 'week', 'month', 'year', 'twoyear'); - foreach ($periods as $period) { $graph_array['from'] = $config['time'][$period];