-
Bug
-
Resolution: Fixed
-
Minor
-
2.6
-
MOODLE_26_STABLE
-
MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
-
MDL-42604-master -
While working on MDL-41979, when I clicked on the Reports tab as an Administrator after attending a SCO having provided status, time and score, no data is returned and I've found the 3 warnings below, in the web server error log:
[Tue Oct 29 23:07:52 2013] [error] [client 192.168.0.202] PHP Warning: Division by zero in /path/to/moodle-master/lib/graphlib.php on line 1021, referer: http://hostname/moodle-master/mod/scorm/report.php?id=88&mode=graphs
|
[Tue Oct 29 23:07:52 2013] [error] [client 192.168.0.202] PHP Warning: Division by zero in /path/to/moodle-master/lib/graphlib.php on line 1023, referer: http://hostname/moodle-master/mod/scorm/report.php?id=88&mode=graphs
|
[Tue Oct 29 23:07:52 2013] [error] [client 192.168.0.202] PHP Warning: Division by zero in /path/to/moodle-master/lib/graphlib.php on line 707, referer: http://hostname/moodle-master/mod/scorm/report.php?id=88&mode=graphs
|
The same applies when clicking on the Graph report subtab: the image is missing and the warning are equal except for the missing of referer info.