Details
Description
I've just created a choice, I've set it up so that everyone can view the choice results, it's not anonymous, and results are shown all the time.
When I go to view the assignment I get several notices:
- Notice: Trying to get property of non-object in /var/www/moodle/m20_dev1/moodle/mod/choice/renderer.php on line 99
- Notice: Trying to get property of non-object in /var/www/moodle/m20_dev1/moodle/mod/choice/renderer.php on line 102
- Warning: ksort() expects parameter 1 to be array, null given in /var/www/moodle/m20_dev1/moodle/mod/choice/renderer.php on line 333
- Warning: Invalid argument supplied for foreach() in /var/www/moodle/m20_dev1/moodle/mod/choice/renderer.php on line 336
I imagine these would all be resolved by handling the no results situation.
Assigning to the current author of the display code