From f8b5ddbe75755f91d50ec870e176516ec38181c9 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Mon, 22 Jun 2015 14:40:11 +0200 Subject: fix PHP Notice about Undefined variable $aggr Closes #122 --- graph.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph.php b/graph.php index 32748d6..f1696fa 100644 --- a/graph.php +++ b/graph.php @@ -83,7 +83,7 @@ switch ($plugin_json[$type]['type']) { } # in case of aggregation, reset pi after initializing $obj to get a correct title -if ($aggr) { +if (isset($aggr) && $aggr) { $_GET['pi'] = GET('pi', $pi[1]); } -- cgit v1.1