Browse files

MDL-43222 SCORM: Fix invalid sql

  • Loading branch information...
1 parent e71ac72 commit 64156342adb533f04639e08e9e31adfef4694e59 @danmarsden danmarsden committed Jan 16, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/scorm/locallib.php
View
2 mod/scorm/locallib.php
@@ -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;

0 comments on commit 6415634

Please sign in to comment.