Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Stopping warning and possible errors in graphlib.php caused by bugs i…

…n statsgraph.php

Ported from LDC (1.5) branch


Author: Andrew Walbran <andrew.walbran@catalyst.net.nz>
  • Loading branch information...
commit 757d66b5047b38acc184db7425c753222822898f 1 parent 9861a39
martinlanghoff authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 course/report/stats/graph.php
View
8 course/report/stats/graph.php
@@ -73,17 +73,17 @@
$graph->y_data['line3'][] = $stat->line3;
}
}
- $graph->y_order = array('line1','line2');
- if (!empty($param->line3)) {
- $graph->y_order[] = 'line3';
- }
+ $graph->y_order = array('line1');
$graph->y_format['line1'] = array('colour' => $c[1],'line' => 'line','legend' => $param->line1);
if (!empty($param->line2)) {
+ $graph->y_order[] = 'line2';
$graph->y_format['line2'] = array('colour' => $c[2],'line' => 'line','legend' => $param->line2);
}
if (!empty($param->line3)) {
+ $graph->y_order[] = 'line3';
$graph->y_format['line3'] = array('colour' => $c[3],'line' => 'line','legend' => $param->line3);
}
+ $graph->y_tick_labels = false;
} else {
$data = array();
$times = array();
Please sign in to comment.
Something went wrong with that request. Please try again.