From 595fa6468b8ad89b505182a18cfcef3380749454 Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Wed, 28 Feb 2007 00:32:39 +0000 Subject: [PATCH] Stopping warning and possible errors in graphlib.php caused by bugs in statsgraph.php Ported from LDC (1.5) branch Author: Andrew Walbran --- course/report/stats/graph.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/course/report/stats/graph.php b/course/report/stats/graph.php index 81d2ec8a33..18e3fc2747 100644 --- a/course/report/stats/graph.php +++ b/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(); -- 2.39.5