MDL-58030 gradingform_guide: Init $commentchooser before use
commit767761b7d84bc70b863cef41b2717cfe3616814c
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:01:20 +0000 (21 14:31 +1030)
treefec9dd87e567a65c1e4639ee0c8ce5b4431a884c
parent9ec952f237d74cb161217045a40c2ae1d56a30bf
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