From 8aa74f821d50c83ce77698df2fc7f97aff86dab1 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Tue, 19 Jul 2011 15:03:58 +0200 Subject: [PATCH] MDL-27696 initialise arrays Credit goes to David Mudrak. --- course/report/log/graph.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/course/report/log/graph.php b/course/report/log/graph.php index 679b7786b27..a2c7ff23637 100644 --- a/course/report/log/graph.php +++ b/course/report/log/graph.php @@ -94,6 +94,7 @@ switch ($type) { $reducedays = 0; } + $days = array(); $i = 0; while ($timestart < $timenow) { $timefinish = $timestart + 86400; @@ -167,6 +168,7 @@ switch ($type) { } $dayfinish = $daystart + 86400; + $hours = array(); for ($i=0; $i<=23; $i++) { $logs[$i] = 0; $hour = $daystart + $i * 3600;