Set $inverse to TRUE when the GET option is set

Fixes #948
This commit is contained in:
Mickael Marchand
2015-05-10 13:20:24 +02:00
parent 31baee5e41
commit e93ca2b465

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."' "; }