mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-55367 report_log: declare log array indexes to avoid errors
This commit is contained in:
parent
079e06adcd
commit
e3df6df02e
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user