MDL-58030 gradingform_guide: Init $commentchooser before use
commit9ffcf8a3e91ed618ba52480999a53aa6282a0695
authorAdam Olley <adam.olley@blackboard.com>
Tue, 21 Feb 2017 04:01:19 +0000 (21 14:31 +1030)
committerAdam Olley <adam.olley@blackboard.com>
Tue, 21 Feb 2017 04:06:49 +0000 (21 14:36 +1030)
tree641b3ea474c4c75f24dda0a0f5861b83d9fef523
parent1a754e8446a494f8363d466cd890fd6c74bdd7f4
MDL-58030 gradingform_guide: Init $commentchooser before use

The initialisation of $commentschooser was moved into an IF condition,
whilst still using it outside of that IF conditions scope. As such, if
there are no comments to choose from, the variable is never init'd but
it still goes to use it, emitting a PHP notice.
grade/grading/form/guide/renderer.php