### Eclipse Workspace Patch 1.0 #P moodle20r Index: mod/scorm/lib.php =================================================================== RCS file: /cvsroot/moodle/moodle/mod/scorm/lib.php,v retrieving revision 1.148 diff -u -r1.148 lib.php --- mod/scorm/lib.php 11 Aug 2010 23:39:19 -0000 1.148 +++ mod/scorm/lib.php 3 Sep 2010 15:07:53 -0000 @@ -608,7 +608,7 @@ } if ($scorm->grademethod == GRADESCOES) { - if ($maxgrade = $DB->count_records_select('scorm_scoes', 'scorm = ? AND launch <> ?', array($scorm->id, $DB->sql_empty()))) { + if ($maxgrade = $DB->count_records_select('scorm_scoes', 'scorm = ? AND launch <> '.$DB->sql_compare_text('?'), array($scorm->id, $DB->sql_empty()))) { $params['gradetype'] = GRADE_TYPE_VALUE; $params['grademax'] = $maxgrade; $params['grademin'] = 0; @@ -949,7 +949,7 @@ * * @param string $type - type of log(aicc,scorm12,scorm13) used as prefix for filename * @param integer $scoid - scoid of object this log entry is for - * @return string The filename as an absolute path + * @return string The filename as an absolute path */ function scorm_debug_log_filename($type, $scoid) { global $CFG, $USER;