MDL-34198 SCORM remove unecessary get_records call

This commit is contained in:
Dan Marsden
2012-07-10 08:34:53 +08:00
committed by Dan Poltawski
parent 714f2d590a
commit 5d7f0fcc1e
-1
View File
@@ -183,7 +183,6 @@ class scorm_interactions_report extends scorm_default_report {
$countsql .= 'COUNT(DISTINCT('.$DB->sql_concat('u.id', '\'#\'', 'st.attempt').')) AS nbattempts, ';
$countsql .= 'COUNT(DISTINCT(u.id)) AS nbusers ';
$countsql .= $from.$where;
$attempts = $DB->get_records_sql($select.$from.$where, $params);
$questioncount = get_scorm_question_count($scorm->id);
$nbmaincolumns = count($columns);
for($id = 0; $id < $questioncount; $id++) {