MDL-55367 report_log: declare log array indexes to avoid errors

This commit is contained in:
Simey Lameze 2016-08-03 14:23:44 +08:00
parent 079e06adcd
commit e3df6df02e

View File

@ -566,6 +566,8 @@ function report_log_userall_data($course, $user, $logreader) {
$timestart = $coursestart = usergetmidnight($course->startdate);
$i = 0;
$logs['series'][$i] = 0;
$logs['labels'][$i] = 0;
while ($timestart < $timenow) {
$timefinish = $timestart + 86400;
$logs['labels'][$i] = userdate($timestart, "%a %d %b");