Skip to content

Commit

Permalink
fix PHP Notice about Undefined variable $aggr
Browse files Browse the repository at this point in the history
Closes #122
  • Loading branch information
pommi committed Jun 22, 2015
1 parent bb8cdf1 commit f8b5ddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graph.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
}

# 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]);
}

Expand Down

0 comments on commit f8b5ddb

Please sign in to comment.