Merge branch 'MDL-54751-master-gradeitemfix' of git://github.com/snake/moodle

This commit is contained in:
David Monllao 2016-11-07 14:43:23 +08:00
commit 5ffd3f3309

View File

@ -1399,6 +1399,8 @@ class grade_item extends grade_object {
* @return string name
*/
public function get_name($fulltotal=false) {
global $CFG;
require_once($CFG->dirroot . '/course/lib.php');
if (strval($this->itemname) !== '') {
// MDL-10557