lgfa29 / basiclti4moodle

Automatically exported from code.google.com/p/basiclti4moodle
0 stars 0 forks source link

wrong Moodle 2.0 DB API call #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install moodle module
2. use instance in a course
3. go to "Course administration" => "Gradebook"
3. from the gradebook, go to "Scales"

What is the expected output? What do you see instead?

ERROR : php catchable fatal error

What version of the product are you using? On what operating system?

module : $module->version  = 2011052602;
moodle : $release  = '2.0.3+ (Build: 20110511)';

Please provide any additional information below.

Changing lib.php (line 285) :

FROM
if ($scaleid and $DB->record_exists('basiclti', 'grade', -$scaleid)) {
TO
if ($scaleid and $DB->record_exists('basiclti', array('grade' => $scaleid))) {

Seemed to solve the problem.

Original issue reported on code.google.com by dunand.n...@gmail.com on 23 Jun 2011 at 2:18

GoogleCodeExporter commented 9 years ago

Original comment by ngalanis@gmail.com on 8 Feb 2012 at 11:18