Merge branch 'm25_MDL-43222' of git://github.com/danmarsden/moodle into MOODLE_25_STABLE

This commit is contained in:
Eloy Lafuente (stronk7)
2014-01-15 22:02:54 +01:00
+1 -1
View File
@@ -1265,7 +1265,7 @@ function scorm_get_attempt_count($userid, $scorm, $returnobjects = false, $ignor
$params = array($userid, $scorm->id);
$sql = "SELECT COUNT(DISTINCT attempt)
FROM {scorm_scoes_track}
WHERE 'userid' = ? AND 'scormid' = ?";
WHERE userid = ? AND scormid = ?";
if ($ignoremissingcompletion) { // Exclude attempts that don't have the completion element requested.
$sql .= ' AND element = ?';
$params[] = $element;