Merge pull request #955 from mmarchand/issue-948

Set $inverse to TRUE when the GET option is set
This commit is contained in:
Neil Lathwood
2015-05-10 16:44:50 +01:00
+1 -1
View File
@@ -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."' "; }