MDL-43222 SCORM: Fix invalid sql

This commit is contained in:
Dan Marsden
2014-01-16 09:48:04 +13:00
parent aafb7a5b95
commit eb07f2d8d0
+1 -1
View File
@@ -1245,7 +1245,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;