MDL-58415 mod_lesson: EOL var must be always numeric

Otherwise it will break the Web Service return description.
This commit is contained in:
Juan Leyva
2017-04-20 09:58:47 +02:00
parent f1cdd978aa
commit dd60892155
+2 -2
View File
@@ -752,7 +752,7 @@ function lesson_get_overview_report_table_and_data(lesson $lesson, $currentgroup
$timestart = 0;
$timeend = 0;
$usergrade = null;
$eol = false;
$eol = 0;
// search for the grade record for this try. if not there, the nulls defined above will be used.
foreach($grades as $grade) {
@@ -805,7 +805,7 @@ function lesson_get_overview_report_table_and_data(lesson $lesson, $currentgroup
$timestart = 0;
$timeend = 0;
$usergrade = null;
$eol = false;
$eol = 0;
// Search for the time record for this try. if not there, the nulls defined above will be used.
foreach ($times as $time) {
// Check to see if the grade matches the correct user.