MDL-43222 SCORM: Fix invalid sql
authorDan Marsden <dan@danmarsden.com>
Wed, 15 Jan 2014 20:48:04 +0000 (09:48 +1300)
committerDan Marsden <dan@danmarsden.com>
Wed, 15 Jan 2014 20:48:04 +0000 (09:48 +1300)
mod/scorm/locallib.php

index 5f0a68c..9f5d546 100644 (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;