MDL-55367 report_log: declare log array indexes to avoid errors
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user