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;