From e93ca2b465ba14994b9999620e08bd58b3cdc4b6 Mon Sep 17 00:00:00 2001 From: Mickael Marchand Date: Sun, 10 May 2015 13:20:24 +0200 Subject: [PATCH] Set $inverse to TRUE when the GET option is set Fixes #948 --- html/includes/graphs/common.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/includes/graphs/common.inc.php b/html/includes/graphs/common.inc.php index 9211db91f1..5bce925d46 100644 --- a/html/includes/graphs/common.inc.php +++ b/html/includes/graphs/common.inc.php @@ -5,7 +5,7 @@ if ($_GET['to']) { $to = mres($_GET['to']); } if ($_GET['width']) { $width = mres($_GET['width']); } if($config['trim_tobias']) { $width+=12; } if ($_GET['height']) { $height = mres($_GET['height']); } -if ($_GET['inverse']) { $in = 'out'; $out = 'in'; } else { $in = 'in'; $out = 'out'; } +if ($_GET['inverse']) { $in = 'out'; $out = 'in'; $inverse=TRUE; } else { $in = 'in'; $out = 'out'; } if ($_GET['legend'] == "no") { $rrd_options .= " -g"; } if ($_GET['title'] == "yes") { $rrd_options .= " --title='".$graph_title."' "; }