From 020c782a8bb0dd626110e5411bdc0a443fa4e86b Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Mon, 5 Sep 2011 15:20:38 +0000 Subject: [PATCH] don't display six graphs if not in widescreen mode! duh! git-svn-id: http://www.observium.org/svn/observer/trunk@2418 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/print-quadgraphs.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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];