Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aafb7a5
)
MDL-43222 SCORM: Fix invalid sql
author
Dan Marsden
<dan@danmarsden.com>
Wed, 15 Jan 2014 20:48:04 +0000
(09:48 +1300)
committer
Dan Marsden
<dan@danmarsden.com>
Wed, 15 Jan 2014 20:48:04 +0000
(09:48 +1300)
mod/scorm/locallib.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/scorm/locallib.php
b/mod/scorm/locallib.php
index
5f0a68c
..
9f5d546
100644
(file)
--- a/
mod/scorm/locallib.php
+++ b/
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;