My moodle version is 1.9.9+ (Build: 20100901) and I can't print the grade of course in my certificate. The grade always shows 0.
I took a look in the code and in the function "get_course_grade" and in the value of its variables.
My quiz is the only activity with grade in my course, and I got grade of 30 on it.
When I try to generate the certificate, the variable "$gradefunction" has " " as value. But there isn't any fuction with this name in " ", so the code "function_exists($gradefunction)" is always false and i can't get the correct grade.
Is this a problem with my moodle version? Should I get another version?
Please help me with this =)
The problem was with my Certificate version. I installed the correct one and it worked.